Small AS3 game engine
Initiated by our Christmas Devjam I am currently developing a small game engine in ActionScript 3 in my spare time. The aim is to create a setup that allows quick and easy development of casual games in Flash. The animation system, that I just successfully debugged, is based on the idea of checking the current frame label of the animated MovieClip as described by Jens Franke in this post (make sure to read the comments, too).
This technique completely separates code from design, allowing the designer to delimit animations without writing a single line of code, but by simply placing one label (e.g. “jump”) at the beginning of the animation and one at the end of it ( e.g. “done_jump” ).
So on each frame that starts with “done_”, the engine triggers a method that decides what to do next: play another animation? Loop this animation a certain amount of times? Jump to another animation? Destroy the object? … So, all the programmer has to do is override the function that makes these decisions and implement the coherent animation functions. Easy, isn’t it?
Right now, I’m planning to somewhat opensource the engine, once it’s done – and it doesn’t turn out to be a heap of useless code. As soon as I make progress in this, I’ll let you know.

January 13th, 2009 at 13:08
Hi there,
ive been following this post for a while now…i feel like i left a comment before, but i might be wrong.
Anyways, i was wondering how the project came along, and if you did release it. I am really curious about what you have there.
keep the good work up,
goliatone
January 13th, 2009 at 13:58
Hi goliatone,
during one of my wordpress updates I kinda managed to destroy the commenting feature so it wouldn’t write any comments to the DB. Sorry for that.
But I really appreciate your feedback. I’ve actually been working on the engine for quite a while and even rewrote large parts to reduce it in complexity But not in recent months.
There’s just too much been going on, lately, but I promised myself to pick this work up again.
I think it’s quite a long way to go, yet, not as much for the code as for the examples and documentation, but I really want to put some effort in it since I got the impression it could turn out quite some useful piece of code.
Stay tuned, I’m about to infuse life into this blog again.
michel