Archived

This topic is now archived and is closed to further replies.

Plan ?

This topic is 5776 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 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 ? **--- -----** (^_^) **-----

Share this post


Link to post
Share on other sites
  
void main()
{
bool done = false;
Init( );
while( !done )
done = GameMain( );
Close( );
return;


There''s a frame that should work.

ERJO

Share this post


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

        
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

Share this post


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

Share this post


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

-----** (^_^) **-----

Share this post


Link to post
Share on other sites