Jump to content
  • Advertisement
Sign in to follow this  
tyler_the_tyler

I STILL dont understand

This topic is 4492 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have read a book on how to program in C. I have read another book on how to program games in C. I understand C (a little). I do not know what to do now. I guess im wondering how to program a game. I know a very little bit of C(just enough to get me by). If anyone could help that would be great. Tyler

Share this post


Link to post
Share on other sites
Advertisement
Well i havent tried yet but i would like to try. i should probably restate my question to make it simpler. Is there any suggestions on books or something of the sort to help me learn more on programing games? thanks in advance

Tyler

Share this post


Link to post
Share on other sites
Begin by writing small (text based) apps. For example, a text based adventure game or tic tac toe. This will give at least some experience by applying what you have learned.

You can then post up the code for someone to review and advise you where to go next.

Share this post


Link to post
Share on other sites
In order to program games you will need a very good understanding of C. Try making text based games such as Hangman, Tic-Tac-Toe, and World Jumble. Before you start each game make an effort to write down on paper what the game loop will look like, e.g. for Tic-Tac-Toe it might be:

While User has not quit and there is no winner
If its users turn
Get users move
Check to see if its valid
If it is valid draw board
Switch turns
Check to see if there is a winner

If its computers turn
Get computers move
Draw Board
Switch Turns
Check to see if there is a winner


After you get the grasp of C, then you can start trying to learn an API such as SDL, Allegro, DirectX, or OpenGl in order to make the graphics.

However, don't try to learn an API until you have a good grasp of the language because even though you might be able to learn how to implement some graphics fine with only a little knowledge you'll still need a good handle on C to make the rest of the game(inventory, game states, and whatnot).

Hope that helped.



Share this post


Link to post
Share on other sites
Also (I have to say it) don't waste your time learning C. Start with C++, happily use std::string, std::vector et al and be comfortable having no idea how they work until such time as you are producing results and have a genuine curiosity.

I learnt to program in BASIC, then moved to C. What I am suggesting above is roughly equivalent, but better.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!