added player loop detection, loose level if last player loops

This commit is contained in:
2024-02-27 18:20:00 +01:00
parent 5d2475d525
commit 707281212a
6 changed files with 76 additions and 25 deletions

View File

@@ -5,6 +5,9 @@ import "github.com/hajimehoshi/ebiten/v2"
type Player struct {
IsPrimary bool
Sprites []*ebiten.Image
LoopPos *Position
LoopStart bool
LoopCount int
}
func (player *Player) SwitchSprite() *ebiten.Image {