I have a simple game RiceRocks which I want to translate into C programming language not C++,because I know C better. I know only basic C++ such as : loops,control statements, arrays. Where to start? What library should I use?
|
closed as off topic by michael.bartnett, Trevor Powell, Sam Hocevar, Byte56, Maik Semder Jan 28 at 17:23
Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
If you have some knowledge of C and Python, the code shouldn't be hard to port. The only thing missing from the standard C which you need to write the game, is a graphics library. As you can see, the Python implementation uses something called Oh, and you need to transform the classes into structures. Just place all the members of the class in a C struct, and implement each method as a function that gets a pointer to the struct ( just as the python methods get a reference to |
|||||
|
|
First off, saying "I know C better" is wrong because that doesn't sound right, and C is technically not better because it's missing a lot from C++ and it's not OOP which means classes and objects don't exist in it. Second off if I were you I would learn C or C++ until your great at it and then look into game libraries such as GLFW or GLUT or a C++ game engine like Irrlicht. |
|||||||||||||||||||||
|
