I have started trying to learn Allegro, so i'm quite new to it, and it is really my first experience with an API.
What i want to do is similar to this (pseudo-code) :
I've read the allegro docs, and the stuff about using the timer, but i still have no clue as to how i would do this.Code:while (!exit) { if (NextUpdate < CurrentTime) { UpdateScreen(); UpdatePlayer(); UpdateEnemies(); GetInput(); Blah(); NextUpdate = CurrentTime + 33.333; //milliseconds } }
Help/code examples would be great, thanks



LinkBack URL
About LinkBacks


