Game programming in C. Possible or not?

This is a discussion on Game programming in C. Possible or not? within the C Programming forums, part of the General Programming Boards category; Is it possible to program good computer games in C, or is it best to learn C then move on ...

  1. #1
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167

    Game programming in C. Possible or not?

    Is it possible to program good computer games in C, or is it best to learn C then move on to C++ and then worry about creating computer games?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Is it possible to program good computer games in C
    Yes, you can do anything with C.

    >or is it best to learn C then move on to C++ and then worry about creating computer games?
    Learning both is always a good idea. Most of the time it takes quite a bit of experience with the basics to even begin writing a decent text game, much less something graphical.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167

    How?

    So how would I go about starting to program computer games?
    Also, how do I begin to become more confident in using C?

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >So how would I go about starting to program computer games?
    Start simple, then work your way up.

    >Also, how do I begin to become more confident in using C?
    The best way is to work with C and ask a lot of questions.

    -Prelude
    My best code is written with the delete key.

  5. #5
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167
    >So how would I go about starting to program computer games?
    Start simple, then work your way up.
    What are good first games to program and where can I get more information about it?

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >What are good first games to program and where can I get more information about it?
    If you have no programming experience then a number guessing game is the best to start with, then text based tic-tac-toe, maybe a simple RPG. Try www.gamedev.net for more information on where to start with the graphical aspects.

    -Prelude
    My best code is written with the delete key.

  7. #7
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680

  8. #8
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167
    >If you have no programming experience then a number guessing game is the best to start with.

    I have programmed a game called "Find the Hurkle" where the program generates two random numbers which relate to the "Hurkles'" position within a two dimensional array(10 by 10). The user gets a set number of attempts to guess the position by inputting numbers. The user is told whether the numbers are higher or lower depending on the random numbers generated(see the Query thread) and this continues until either the number is found or the user runs out of goes!

    >then text based tic-tac-toe, maybe a simple RPG

    meh?

  9. #9
    Shadow12345
    Guest
    Well your 'Hurkle' game seems like a great start for writing games. Did you know that the windows operating system and the quakeII engine were both written in C? When Prelude said that you can do anything in C, she meant it!!! Your role playing game could be easily done, you can have it all be text with words and the user enters commands (I think everyone starts out this way).
    For example:
    "You have entered the dark dungeon, would you like to continue or go back?"
    and then the user inputs either 'Continue' or 'Go Back'



    The only bit of advice I can give you that I don't think anyone else will is to not let yourself get too frustrated with programming. I just thought I'd throw that in there

  10. #10
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >then text based tic-tac-toe, maybe a simple RPG
    >>meh?
    tic-tac-toe = Naughts and Crosses for us English folk
    RPG = Role Playing Game, a text based adventure game.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  11. #11
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140
    I startet do program in C once and I
    haven't done anything else, yet...

    It is always good to start with C to learn
    the basics and then, after some C coding
    move to C++ or even VC++. I wouldn't
    start with C++. A good and interesting
    book is "Absolute Beginners Guide to C".
    And after you got through this book you
    can mind about changing to C++ or even
    stay at C and learn some better coding...

    Have fun! C is a good way to start...

  12. #12
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    For a few commercial applications written in C, i could note:

    Quake 1,2,3
    All quake game engines are written in plain C.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  13. #13
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140
    as you can see, C is very powerful tough

  14. #14
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167

    Thanks guys!

    Thanks for the help guys!


  15. #15
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    It has been my experienced that although C++ unknowingly know C they seem baffled by syntax. Therefore, I suggest learning C first. If you aren't new to object oriented programming and already know C you can learn C++ in an extremely short time.

    I also want to point out that you can make a game using almost any programming language.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-07-2010, 11:08 PM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 02:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21