(dt float32)
| 116 | } |
| 117 | |
| 118 | func (c *ControlSystem) Update(dt float32) { |
| 119 | for _, e := range c.entities { |
| 120 | if engo.Input.Button(actionButton).JustPressed() { |
| 121 | e.AnimationComponent.SelectAnimationByAction(WalkAction) |
| 122 | } else if engo.Input.Button(jumpButton).JustPressed() { |
| 123 | e.AnimationComponent.SelectAnimationByAction(SkillAction) |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func main() { |
| 129 | opts := engo.RunOptions{ |
nothing calls this directly
no test coverage detected