writing program in c

Started by
4 comments, last by shaileemehta 11 years, 5 months ago
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! sad.png
Advertisement
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.

- Jason Astle-Adams

I will just add cplusplus.com's C library reference section may be useful as well.
Patrick

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).

+---------------------------------------------------------------------+

| Game Dev video tutorials -> http://www.youtube.com/goranmilovano | +---------------------------------------------------------------------+
I know i need to learn more but my teacher isn't available now and i know the basics , basics but the graphics things confuse me i saw a few programs on programmingsimplified.com but they are written all in C++.
Anyways thnx for the suggestions ;)

This topic is closed to new replies.

Advertisement