fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.59k stars 116 forks source link

feat: Respawn Stamp Boots when a player was killed #993

Closed Breadp4ck closed 1 month ago

Breadp4ck commented 1 month ago

This PR closes #929.

I made WornStompBoots component that marks the entity that created when the player used the boots. When the player is killed (PlayerKilled) and a related entity with WornStompBoots exists (stomp_boots in WearingStompBoots), I respawn the entity with StompBoots component and remove marker WornStompBoots.

Breadp4ck commented 1 month ago

@MaxCWhitehead

I think we should not close the issue right now.

However, after experimenting for a while, I discovered that players can equip two boot items, but only one of them will respawn when the player is killed. I suggest dropping the worn boots when a player attempts to equip another pair.