Cleanup, new alternating pulse mechanic.

This commit is contained in:
2024-11-05 06:49:34 -05:00
parent c234616fdf
commit 7608847727
2 changed files with 170 additions and 150 deletions

View File

@@ -68,6 +68,7 @@ type Mover struct {
rotating bool
Toggled bool
Hit bool
Touched bool
dyingcount int
}
@@ -164,5 +165,10 @@ func (m *Mover) SetHit() {
}
func (m *Mover) ToggleColor() {
m.Toggled = !m.Toggled
//m.Toggled = !m.Toggled
if m.Action == MoverActionDefault {
m.Action = MoverActionDamaged
} else if m.Action == MoverActionDamaged {
m.Action = MoverActionDefault
}
}