fredag 19 juni 2009

Actions and Events

More on events. I've integrated parts of the event system to work with states so that state changes are passed around as events. Works well. Also I have changed in the action handling a bit. (The part that binds keys to actions). And...as a final bonus I've added a small Lua console to ease testing.

As you can see I have typed "createObject("ball")" and sure enough, a blue ball (top right) comes zooming towards the corshair.

tisdag 16 juni 2009

Extended Script Support

Script support has been extended to enable creation of new component types using lua scripts. This opens for creating new types during run-time. The ScriptComponents are created using LuaBind's lua classes.

söndag 7 juni 2009

Events and Collision

Hi,
I guess I've been keeping it quiet for a while now but I have been programming quite a bit. Mainly stuff concerning collision handling and the events sent to objects and components. I think I have a good ground to stand on now and I created a quick example the other day where a box follows where I'm shooting and returns the ball over the net. Very fun but har to beat.