Game Main Loop
dudes.. can someone explain me this exactly? pls...
i just cant understand it 100%.... thanks
Kaimera Project- A myth... traditional story about supernatural beings or imaginary people that narrates a common belief or explains some natural phenomenon.
Game Main Loop is usually a function that does the actual game stuff (render/drawing, AI, physics, etc)
like this:
while(true)
{
//Window handling message goes here
...
Game_Main();
}
or unless you meant something else?
in DOS this will look like this:
int main()
{
...
for( ; ; )
Game_Main();
}
Hope this helps
EDIT: Removed that stupid winky face
______________________________________________
You know your game is in trouble when your AI says, in a calm, soothing voice, "I'm afraid I can't let you do that, Dave"
[edited by - Zeraan on June 12, 2002 3:25:25 AM]
like this:
while(true)
{
//Window handling message goes here
...
Game_Main();
}
or unless you meant something else?
in DOS this will look like this:
int main()
{
...
for( ; ; )
Game_Main();
}
Hope this helps
EDIT: Removed that stupid winky face
______________________________________________
You know your game is in trouble when your AI says, in a calm, soothing voice, "I'm afraid I can't let you do that, Dave"
[edited by - Zeraan on June 12, 2002 3:25:25 AM]
while(gameNotFinished){ doGameLogic(); render();}
And add your own bells and/or whistles to that. Or be more specific with your question..
___
[size="1"][[size="1"]TriangularPixels.com[size="1"]] [[size="1"]Rescue Squad[size="1"]] [[size="1"]Snowman Village[size="1"]] [[size="1"]Growth Spurt[size="1"]]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement