Jump to content

  • Log In with Google      Sign In   
  • Create Account


writing program in c


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 shaileemehta   Members   -  Reputation: 106

Like
1Likes
Like

Posted 17 November 2012 - 11:05 PM

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! Posted Image

Sponsor:

#2 jbadams   Senior Staff   -  Reputation: 17670

Like
2Likes
Like

Posted 17 November 2012 - 11:43 PM

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.

#3 prh99   Members   -  Reputation: 500

Like
1Likes
Like

Posted 18 November 2012 - 12:41 AM

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

#4 LennyLen   Crossbones+   -  Reputation: 3530

Like
0Likes
Like

Posted 18 November 2012 - 07:25 AM

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.

#5 Goran Milovanovic   Members   -  Reputation: 1104

Like
2Likes
Like

Posted 18 November 2012 - 01:48 PM

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 |
+---------------------------------------------------------------------+

#6 shaileemehta   Members   -  Reputation: 106

Like
0Likes
Like

Posted 19 November 2012 - 10:44 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS