Basic knowledge of game programming in C language

In the past two months, I have been trying hard to learn the basics of game programming. So I wrote a few simple games in Java to learn the basics, such as Tetris, Checkers and Pac-Man.

Now I want to learn/improve my C skills, so I have the idea to write these games in C to learn more about memory management, no OOP, etc. I have done basic C programming before, but have never used graphics, so I don’t like it. I don’t know where to start.

Which libraries should I use to write simple 2D games in C? GTK? Cairo Library? Can you recommend any tutorials? Graphics library?

Thank you

I recommend using SDL graphics library, here are some very good The tutorials and demos… http://www.libsdl.org/ and the tutorials here… http://www.sdltutorials.com/ Hope it goes well!

In the past two months, I have been trying hard to learn the basics of game programming. So I wrote a few simple games in Java to learn the basics, such as Tetris, Checkers and Pac-Man.

Now I want to learn/improve my C skills, so I have the idea to write these games in C to learn more about memory management, no OOP, etc. I have done basic C programming before, but have never used graphics, so I don’t like it. I don’t know where to start.

Which libraries should I use to write simple 2D games in C? GTK? Cairo Library? Can you recommend any tutorials? Graphics library?

Thank you

I recommend using the SDL graphics library, here are some very good tutorials and demos… http://www.libsdl .org/ and the tutorials here… http://www.sdltutorials.com/ hope it goes well!

Leave a Comment

Your email address will not be published.