Overview

The player ship is the trusty steed of the player’s character. Provided to the player by the company, the player helms the ship across all the sectors of the game, collecting trash, warding off enemies, and fulfilling various quests.

Controls Script

The player ship’s first and foremost script is its controls, the ShipMovement script. This script handles everything from input, to movement, to turret controls, as well as ammunition and SFX.

Health

The player ship has a typical health component applied to it which keeps track of the player’s health as they take damage. The player’s health component is different from many others in that it actually allows for a moment of invulnerability after taking damage. It also is the link to exiting levels upon dying, using its OnHealthChanged event, and plays a pivotal role in transitions for that reason.

Smash Ability

The player ship has an unlockable “Smash” ability, which is encompassed in the SmashAbility script. The smash ability is effectively a combined dash/ramming ability that the player can activate with left shift. This script can be simply attached to the player ship to become functional, and features variables regarding dash speed, dash cooldown, and ramming damage.