Jump to content
  • Advertisement
Sign in to follow this  
shaileemehta

writing program in c

This topic is 2220 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 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites
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 ;)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!