Day 51— Aspiring Game Creator
2D Game Dev: Galaxy Shooter
Objective: Homing Projectile — create a homing projectile whick seeks the target. A rare power-up.

Whether it’s the player’s homing freeze torpedo blazing toward the nearest enemy or the enemy’s heat seeking Retro-Rocket chasing down the player both “homing projectiles” use the same Seeker Class.
Day 48 — Aspiring Game Creator
2D Game Dev: Galaxy Shooter

Objective: Enemies can destroy Power-Ups & Pick-Ups
Again, making use of the enemy’s Field-Of-View scan, once a power-up, pick-up or collectable crosses the enemy’s FOV, a laser beam shoots at the object, destroying it before the player can pick it up.
As the enemy zooms down thru space, the FOV cone will trigger on the PowerUp tag and call back into the Enemy’s parent method: DestroyPowerUp
Day 46 — Aspiring Game Creator
2D Game Dev: Galaxy Shooter

Objective: Smart Enemy Type: Create an enemy type that knows when it’s behind the player (BELOW) and FIRES a WEAPON Backwards.
Making use again of the FOV, this one at the rear of the enemy, once the enemy has passed a particular Y-threshold, the rear Field-Of-View is enabled, if the Player is spotted, the enemy launches a heat seeking Retro Rocket, destroying itself, but chasing the player until destroyed or exploding.
Day 45 — Aspiring Game Creator
2D Game Dev: Galaxy Shooter

Objective: Aggressive Enemy Type: If the ENEMY is within range of the PLAYER, the ENEMY will try and RAM the player ship.
Using the FIELD-OF-VIEW scan from the Cloaking Class, once the PLAYER is “In View” the Aggression Class…
Day 44 — Aspiring Game Creator
2D Game Dev: Galaxy Shooter

Objective: Create an enemy type that can avoid the player’s primary weapon. When a laser cannon is fired the enemy can detect the shot and avoid it.
The enemy makes use of a cone shaped collider to scan for incoming laser fire or torpedoes and once the attack is detected it enables cloaking mode.