Scene represents a screen ingame. i.e.: main menu, settings, but also the game itself
| 10 | // Scene represents a screen ingame. |
| 11 | // i.e.: main menu, settings, but also the game itself |
| 12 | type Scene interface { |
| 13 | // Preload is called before loading resources |
| 14 | Preload() |
| 15 | |
| 16 | // Setup is called before the main loop |
| 17 | Setup(Updater) |
| 18 | |
| 19 | // Type returns a unique string representation of the Scene, used to identify it |
| 20 | Type() string |
| 21 | } |
| 22 | |
| 23 | // Shower is an optional interface a Scene can implement, indicating it'll have custom behavior |
| 24 | // whenever the Scene gets shown again after being hidden (due to switching to other Scenes) |
no outgoing calls
no test coverage detected