RunPreparation is called automatically when calling Open. It should only be called once.
(defaultScene Scene)
| 49 | |
| 50 | // RunPreparation is called automatically when calling Open. It should only be called once. |
| 51 | func RunPreparation(defaultScene Scene) { |
| 52 | Time = NewClock() |
| 53 | SetScene(defaultScene, false) |
| 54 | } |
| 55 | |
| 56 | func runLoop(defaultScene Scene, headless bool) { |
| 57 | c := make(chan os.Signal, 1) |