Creating a Flying Enemy
Due Thursday, October 24
Create a mobile enemy, which will fly around the game world. It can fly in any pattern you like, but must move. For example, it could move in a circle around the origin, back and forth along a particular line, or toward the player. Since this is an enemy, it should also shoot at the player. Give the enemy a chance of shooting in each timeslice as part of the movement. The player should be able to shoot the enemy as well. Projectiles can be aimed by setting the velocity vector for new enemy-fired projectiles to point toward the player
The game must have:
- At least one object that looks different than anything in the class engine
- Some mechanism for when the player gets hit. Up to you what this is. An easy method is to check each projectile to see if it's too close to the player's location each timestep.
- Once the enemy is defeated, it should stop shooting at the player.
- One additional feature that you make up (moving platform, thing to hide behind, more than one enemy, player health, homing missiles, etc).
As with project 1, turn in via in-class demo.