Thread: Arrow Engine
View Single Post
Old 01-14-2009, 11:46 AM   #22
Re: Arrow Engine
Originally Posted by jimbob View Post
but that piece of code doesn't make much sense to me. i can do a bit of coding in duke3d and a slight bit in unrealscript, a bit of PLC programming and thats about it.
Well what he tried to say was that at the core of any game engine there has to be an infinite loop that keeps running. The loop typically polls user input first, then processes the input to update player models and environment, then do the rendering and so on. Once all that is done one single frame was generated and displayed on the screen and the whole thing starts all over.

Here's a little article that's part of a game engine tutorial that explains this a little better:

On a sidenote: while(continue) doesn't work assumming it was supposed to be C or C++ code. while(true) or while(1) however does. Sory for the useless rant :/
M:I - New Dawn
a Max Payne 2 modification
theHunted is offline