Refactor to use better interfaces and event callbacks.

This commit is contained in:
2024-11-15 16:11:45 -05:00
parent 4ced75d66c
commit cbc4ba5eb3
16 changed files with 1009 additions and 14 deletions

View File

@@ -114,7 +114,7 @@ func (m *Mover) Draw() {
}
}
func (m *Mover) Update() {
func (m *Mover) Update() error {
/*
dx := 0. //40 * math.Cos(float64(m.cycles)/16)
dy := 0. //40 * math.Sin(float64(m.cycles)/16)
@@ -130,6 +130,7 @@ func (m *Mover) Update() {
m.dyingcount++
}
m.cycles++
return nil
}
func (m *Mover) SetHit() {