writing program in c
Hi I am a first year b.tech student and we have a project on making an E-learning game for which we r supposed to code in C but we have no idea as to how to do it..how to add graphcs and open files using C. I need help!
To input or output graphics you'll need a library such as SDL or Allegro. For opening files, try this tutorial.
It sounds like you might need to spend a little more time on the basics of programming with C before you tackle your game project. If you really have no idea how to start you should talk to your teacher and see if you can get more help.
It sounds like you might need to spend a little more time on the basics of programming with C before you tackle your game project. If you really have no idea how to start you should talk to your teacher and see if you can get more help.
If you really have no idea how to start you should talk to your teacher and see if you can get more help.
Especially with regards to the library to use. I would ask if they have a recommended library, as if you use one that they are not familiar with, it could make it harder for them to understand your code.
I wrote a tetris game in C, using SDL, OpenGL and GLEW. You can find the source-code here: https://github.com/goranm/wtetris
Although, I would still echo what others have said: If you don't really have a good base of C experience under your belt, you're going to have an extremely difficult time writing an actual game in C (no matter how conceptually trivial, and no matter what libraries you decide to use).
Although, I would still echo what others have said: If you don't really have a good base of C experience under your belt, you're going to have an extremely difficult time writing an actual game in C (no matter how conceptually trivial, and no matter what libraries you decide to use).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement