fishfolk / punchy

A 2.5D side-scroller beatemup, made in Bevy

Home Page:https://fishfolk.github.io/punchy/player/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Player Indexes

zicklag opened this issue · comments

Players should have a component such as PlayerIndex(usize) on them that just sets which player they are.

This can be used where the player order is important, for example, in the HUD display, which happens to change the ordering when a fish get's punched sometimes, just due to the unstable iteration order over player entities.