Plan ?
Hi , I think there is no need to tell that that i''m new to game programming I was wondering how a game is make ? I mean not the game design itself but ..mmm. the organisation of the files , sources, etc... If someone can give me a shell that I can start with in the right directionthat would be nice.
Thanks
If you don''t understand my question, it''s okay since i''m don''t understand myself lol
Maduray
---** Being a newB isn''t that bad, is it ? **---
-----** (^_^) **-----
-----** (^_^) **-----
void main(){ bool done = false; Init( ); while( !done ) done = GameMain( ); Close( ); return;
There''s a frame that should work.
ERJO
wow thanks a lot man
With that i''m going to make a game for real ? thanks again !
-----** (^_^) **-----
With that i''m going to make a game for real ? thanks again !
-----** (^_^) **-----
-----** (^_^) **-----
Heh. That may be the basic outline (very... very, very, basic..) of a small game, but you couldn't do much with that.
If you wan't to make a game, you have to learn C++(or whatever programming language... I suggest C++) quite well, and then look into a easy graphics API (might I suggest Simple DirectMedia Layer? ).
The structure of a game won't even make sense to you untill then.
However, I'll give you a head start. Here's how your main function will be arranged, in order to make a game:
Hope that helps! Mind you that the code for a game is alot longer. That is just another basic outline of the structure.
------------------------------
Simple DirectMedia Layer:
Main Site - (www.libsdl.org)
Cone3D Tutorials- (cone3D.gamedev.net)
GameDev.net's Tutorials - (Here)
OpenGL:
Main Site - (www.opengl.org)
NeHe Tutorials - (nehe.gamedev.net)
Online Books - (Red Book) (Blue Book)
Edited by - Drizzt DoUrden on February 20, 2002 5:30:36 PM
If you wan't to make a game, you have to learn C++(or whatever programming language... I suggest C++) quite well, and then look into a easy graphics API (might I suggest Simple DirectMedia Layer? ).
The structure of a game won't even make sense to you untill then.
However, I'll give you a head start. Here's how your main function will be arranged, in order to make a game:
int main(){ CreateWindow(); LoadGraphics(); int done = 0; while(done == 0) { //do some shtuff, thats right, shtuff. if(keypressed = UP) { ChangePositionOfGraphic(); } done = 1; } return 0;}
Hope that helps! Mind you that the code for a game is alot longer. That is just another basic outline of the structure.
------------------------------
Simple DirectMedia Layer:
Main Site - (www.libsdl.org)
Cone3D Tutorials- (cone3D.gamedev.net)
GameDev.net's Tutorials - (Here)
OpenGL:
Main Site - (www.opengl.org)
NeHe Tutorials - (nehe.gamedev.net)
Online Books - (Red Book) (Blue Book)
Edited by - Drizzt DoUrden on February 20, 2002 5:30:36 PM
------------------------------Put THAT in your smoke and pipe it
Here''s a different angle of an answer...
Load in game data
initialize game state
initiate game
receive user input (input engine)
determine AI actions (ai engine)
calculate object movements/positions (physics engine)
draw to view (graphics engine)
loop back to user input until game end
loop back to initiate game until user quits game
Obviously there are many variations, and there can also be expansions of every item in the list, but these are the fundamental tasks and one order of performing them involved in making a basic game.
Load in game data
initialize game state
initiate game
receive user input (input engine)
determine AI actions (ai engine)
calculate object movements/positions (physics engine)
draw to view (graphics engine)
loop back to user input until game end
loop back to initiate game until user quits game
Obviously there are many variations, and there can also be expansions of every item in the list, but these are the fundamental tasks and one order of performing them involved in making a basic game.
that''s great thanks ! I think it''ll help me.
Thank you.
But how about the file and graphics ? How can you load file or grphics in your program ? and where do you put those files ? Do you compile them with the app or put them in a folder ?
Thanks again
Maduray
-----** the power of the newbie is within you **-----
-----** (^_^) **-----
Thank you.
But how about the file and graphics ? How can you load file or grphics in your program ? and where do you put those files ? Do you compile them with the app or put them in a folder ?
Thanks again
Maduray
-----** the power of the newbie is within you **-----
-----** (^_^) **-----
-----** (^_^) **-----
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement