OVERVIEW:


Creation
Clicking the screen will create an Enemy object at the mouse co-ordinates. Unless the X Speed and Skin alterable values are defined at creation, a random value will be generated.

Movement
On every frame, the X Speed is added to the X Float. This is the floating point X position for each Enemy.
A fast loop called Gravity runs 10 times every frame, forcing each Enemy to the ground surface.

Skins
There are 3 different Enemy skins. Each stored in a different animation direction and each with a left and right animation sequence. Pictured to the right.

Pressing 1, 2 or 3 will create an Enemy object with a predefined skin. These being Generic 1, Generic 2 and Cop respectively

ALTERABLE VALUES/STRINGS:

Enemy
Alterable Value Default Description
X Float 0 The floating point X position of the Enemy.
X Speed 0 The amount of pixels the Enemy will move per fame.
Skin 0 This value determines which skin our Enemy will display.
Alterable Strings Default Description
Direction "Right" The The direction the Enemy will face and walk.
3