I finished creating the weapon marker handler and the canon-weapon. The weapon marker handler will create a marker on the spot where you click with your mouse and will send the closest idle weapon to that spot to fire.
The canon weapon will fire a bullet that will explode in a kind of shockwave.
In the working sample you can press the + (plus) key on the numeric keypad to add an additional canon weapon.
You can see the work in progress here
I created the canon weapon marker with Illustrator.

I created the shockwave animation (32 frames) using blender.

( everyone may use this sprite sheet
)
The glowing marker cursor was created at runtime by creating a 15 frames long animation with the glow effect.
// generate glow bitmaps
for (var i:int=0; i<16; i++)
{
bitmap.filters = [ new GlowFilter(0x99ff00,(0+(100/25)*i)/100,6,6,4,3) ];
var bitmapData:BitmapData = new BitmapData(bitmap.width, bitmap.height,true,0);
bitmapData.draw(bitmap);
frames[frames.length] = bitmapData;
}
See this tutorial how one can render SpriteSheet animations at run time.
Next will be some dangerous space lava rocks to shoot at
You can see the work in progress here
Tags: Game Development