ucsd-cse125-sp24 / group5

A character-based ability shooter 2v2 heavily inspired by Four Seasons
https://cse125.ucsd.edu/2024/cse125g5
6 stars 0 forks source link

failsafe #36

Closed Alanine42 closed 1 month ago

Alanine42 commented 1 month ago

in case the player or the egg is outside of the map, translate it to a random location above the map (respawn).

the translation can be immediate or across 20 frames (disable collision systems and movement requests while doing so)


nice2have: death swap also lasts across 20 frames instead of an immediate swap.

Alanine42 commented 1 month ago

lerping is already implemented.

add LerpingComponent(startPos, endPos) to any entity and set its PositionComponent.isLerping to true.