Over the holiday break, I have been able to work quite a lot on my Casual Game’s engine (read the proposal for this here). This post outlines the process that I underwent.
You can download Milestone 1 here.
Milestone 1 consists of a fairly bare bones setup in which the following works:
- Player spawns, Player can be moved using the arrow keys or WSAD.
- Player shoots by using the Space Bar.
- Enemies spawn, move downwards on spawn (this is to be changed for the final game).
It is worth noting that currently, you cannot hit enemies, nor can the enemy hit you.
To get some kind of an idea as to how exactly I could implement a shoot ’em up engine in ActionScript 3, I used an online tutorial as a basis for my own engine (which you can find here). The tutorial was sound in some areas and not so great in others. For instance, the tutorial was written in such a way that it encouraged the use of one ActionScript file. This was not what I wanted as coding with classes is a much simpler way of coding (isolating sections of code for easier debugging etc…). It is also worth mentioning that some of the code within the tutorial simply did not work, and these bits and pieces had to be totally modified by myself. However, the tutorial gave me an idea as to how exactly my engine should work in terms of processes.