(u engo.Updater)
| 14 | |
| 15 | func (*DefaultScene) Preload() {} |
| 16 | func (*DefaultScene) Setup(u engo.Updater) { |
| 17 | w, _ := u.(*ecs.World) |
| 18 | |
| 19 | w.AddSystem(&common.RenderSystem{}) |
| 20 | w.AddSystem(&InputSystem{}) |
| 21 | |
| 22 | engo.Input.RegisterAxis("sideways", engo.AxisKeyPair{engo.KeyA, engo.KeyD}) |
| 23 | engo.Input.RegisterButton("action", engo.KeySpace, engo.KeyEnter) |
| 24 | } |
| 25 | |
| 26 | func (*DefaultScene) Type() string { return "Game" } |
| 27 |
nothing calls this directly
no test coverage detected