mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Added geo and gl packages from gogeline and improved documentation.
This commit is contained in:
7
game.go
7
game.go
@@ -67,6 +67,7 @@ func Run(game Game, options *RunOptions) {
|
||||
|
||||
for running {
|
||||
if exitOnClose && wnd.ShouldClose() {
|
||||
cleanup()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -87,3 +88,9 @@ func Run(game Game, options *RunOptions) {
|
||||
func Stop() {
|
||||
running = false
|
||||
}
|
||||
|
||||
func cleanup() {
|
||||
for _, system := range systems {
|
||||
system.Cleanup()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user