Hi There,
I'm in need of some good advice. Hope someone can help me.
I want to make a game in blitzplus which has the following design elements:
1- a canvas which refreshes at 30 fps and shows the actual game action (moving objects, etc).
2- lots of buttons for which I want to use the blitzplus event handler.
3- a textbox in which the player can type commands which affect the game.
Now what I want to know is, what would the framework look like?
Do I create an event loop and place the flip canvasbuffer inside that loop? But how can I guarantee the 30fps in that case?
Or should I make an flip canvasbuffer loop and try somehow to place an event loop inside it?
Simply put: I don't know how to
Can someone please help me? write the game loop in pseudo-code?
thanks in advance,
Andrik
I'm in need of some good advice. Hope someone can help me.
I want to make a game in blitzplus which has the following design elements:
1- a canvas which refreshes at 30 fps and shows the actual game action (moving objects, etc).
2- lots of buttons for which I want to use the blitzplus event handler.
3- a textbox in which the player can type commands which affect the game.
Now what I want to know is, what would the framework look like?
Do I create an event loop and place the flip canvasbuffer inside that loop? But how can I guarantee the 30fps in that case?
Or should I make an flip canvasbuffer loop and try somehow to place an event loop inside it?
Simply put: I don't know how to
Can someone please help me? write the game loop in pseudo-code?
thanks in advance,
Andrik