writing program in c
Started by shaileemehta, Nov 17 2012 11:05 PM
5 replies to this topic
Sponsor:
#2 Staff - Reputation: 8935
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.
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.
From my blog: 20 ways to advertise your game | What next? Intermediate to advanced C++
How to make games WITHOUT programming | 4 reasons you aren't a successful indie developer
#3 Members - Reputation: 441
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 Crossbones+ - Reputation: 1147
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 Members - Reputation: 878
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).
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).
Learn the basics with my Python 3 video tutorial series. Looking for a good game engine, and relevant tutorials? Here you go.
Small and simple Python 3.x media library: pslab
Small and simple Python 3.x media library: pslab
#6 Members - Reputation: 106
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 ;)
Anyways thnx for the suggestions ;)






