Game Framework

BlitzMax Forums/BlitzMax Programming/Game Framework

Scaremonger(Posted 2007) [#1]
I have developed a new framework for my current game, and would like to invite the Blitz community to pull it apart and insult my coding as much as you can.

Essentially i'd like to know how you would improve upon it.

Features:
* Object based Game States
* Multiple screen layers in single game list
* Delta time
* Free




Dreamora(Posted 2007) [#2]
CRAAAAP

THE WORST THING I'VE EVER SEEN



Naw, now for real:

Looks nice.
SDL scene inspired, right?

Surely an interesting way of handling the whole thing.


Would potentially the "State" really rename to Scene to make it more intuitive what it means as a state in a game is quite a lot, not needfully a specific menu or the like. A state would be as well the wait on a new enemy wave and the like.


Scaremonger(Posted 2007) [#3]
I have no idea what an SDL scene is, but I guess I should now google it.


Dreamora(Posted 2007) [#4]
An SDL scene is simply said a container for objects that you can move within that container, switch out with that container etc etc.

to some point similar to how hierarchy in Blitz3D works where you can "disable" anything by disabling the parent and the like.

Just that SDL scenes work like your states, you can switch between them. Scene Graphs if this helps :)


altitudems(Posted 2007) [#5]
I like the FSM approach, very similar to how I do things.


Looks like you've got somthing very well written there.

I will take a closer look later.