Bosses
Bosses are special more complex enemies that usually mark the end of a part of a stage.
There are 6 bosses in the game:
Mega Slime
Launches swords at the player and spawns smaller slimes
Crab
Slams the ground to produce earth spikes all around it and burrows into the ground to become invincible
Queen Wasp
Charges at the player and launches honey mines
Mask
Launches projectiles at the player and spawns hands
Bell
Launches waves of different projectiles at the player
Void
Spawns black holes and shade enemies, can teleport
Boss staructure
Unlike the simple enemies, each boss has its unique behavior class, but it still has to be inherited from EnemyBehavior class. This class implements the unique aspects of the boss (shooting projectiles, moving in other ways than just following players, attacking in some unique way, etc. )
Bossfight
Each bossfight starts with the warning of an incoming fight.

After a few seconds stage timeline pauses, all alive enemies die and the bossfight fence appears. It contains the fight inside, preventing the player from running away. The big red circle appears that indicates the place where the boss will be spawned. After a few more seconds the boss spawns and starts attacking the player.
Bosses have an fullscreen ui healthbar instead of the usual world space one.

When the boss is defeated, it drops a magnet, a healing item and a chest. The bossfight fence is spawned and the timeline unpauses.
Bossfight data is stored in the Bossfight Database that located in
Each element of the database consists of:
Boss Type
Display Name
Boss Prefab
Fence Prefabs
Bossfight Fence
The existing fences are located here:
There are two types of bossfight fences:
Circle Fence
Rect Fence
Each fence is constructed with the singular fence links.
On other then Endless stage types the fence will center itself with the playing field
Last updated