Galaxy Shooter — Phase I: Framework
2 min readMay 3, 2021
Day 36 — Aspiring Game Creator
2D Game Dev: Galaxy Shooter
Objective: Create a Health/Armor Repair Collectable
Pseudo Code:
- Create an armor collectable
- Armor collectable repairs the player ship by +1
- FX: Repair Bots buzz around ship.
- Flaming, smoking damage is replaced by ship engine
- UI: update both ship graphic & numerical lives to reflect the +1
- Additional BONUS, if three (3) pieces of armor are collected before taking any damage, a BONUS LIFE/HIT is awarded.
- UI: Three empty shields will be replaced by armor with each pickup. One the third and final pick-up the BONUS LIFE message will flash.
If the player is able to pick up three armor power-ups before taking damage then a BONUS is activated for the rest of the level. The BONUS enables a one-shot shield. Unlike The Shield power-up this BONUS shield will not destroy other power-ups or pick-ups but will deflect/destroy an enemy or its laser.
Just like damage method, when the ship has two damaged engines, the repair method will randomly choose the left or right side and repair it.