Galaxy Shooter — Phase I: Framework

Rob George
May 1, 2021

--

Day 34 — Aspiring Game Creator

2D Game Dev: Galaxy Shooter

Above the Laser Cannons HUD gives instant updates to total & remaining ammo.

Objective: Limiting Player Ammo Count and Ammo HUD

  • Limit the number of shots for the primary laser cannons.
  • Maximum number of shots is 15.
  • When out of ammo, provide on-screen feedback and SFX.

Limiting the player’s ammo is straightforward. A pair of variables: MaxAmmo & CurrentAmmo.

A UI Slider will provide quick on-screen feedback of the current amount of shots remaining.

MaxAmmo will set the slider’s max value and CurrentAmmo will automatically set the slider’s value.

--

--

Rob George
Rob George

No responses yet