Exit is the safest way to close your game, as `engo` will correctly attempt to close all windows, handlers and contexts
()
| 265 | |
| 266 | // Exit is the safest way to close your game, as `engo` will correctly attempt to close all windows, handlers and contexts |
| 267 | func Exit() { |
| 268 | closeGameOnce.Do(func() { |
| 269 | close(closeGame) |
| 270 | }) |
| 271 | } |
| 272 | |
| 273 | // GameWidth returns the current game width |
| 274 | func GameWidth() float32 { |
no outgoing calls