jheredia / pack-it-up

Frantic packing action game about a group of backpackers working together to complete their trip while trying to keep their luggage and sanity.
1 stars 1 forks source link

End Zone #6

Closed IsaacS2 closed 2 weeks ago

IsaacS2 commented 2 weeks ago

As a player, I should be able to identify and enter an End Zone that triggers the level exit if the objectives are complete.

This end zone should emit an event whenever anyone enters it so anyone listening can react accordingly.

To avoid emitting unnecessary events, the end zone should be able to be turned off or on, thus checking for the player only if the main objectives of the level are completed (i.e. mandatory items are located)

If the timer reaches zero, the end zone should be toggled off automatically as it will no longer be checking for any player.

In case of multiple players, the end zone will emit events in case that any player enters its collider.

The size of an end zone should be given as parameters so we can easily create levels with more freedom.

If no parameters are given, let's keep a default height and width of 2 x 5 cells (32 px each)

If an end zone is active, it should give the player a clear visual cue, that could be some glow, some movement or anything else that conveys the idea that you can access it.