Code restructuring.

This commit is contained in:
Marvin Blum
2016-08-18 23:58:41 +02:00
parent 6ffa5aa431
commit 69886eff00
10 changed files with 197 additions and 197 deletions

View File

@@ -4,6 +4,11 @@ import (
"log"
)
var (
scenes []Scene
activeScene Scene
)
// A scene used to switch between game states.
// The Cleanup() method is called when a scene is removed
// or the program is stopped. It can be used to cleanup open resources
@@ -19,11 +24,6 @@ type Scene interface {
GetName() string
}
var (
scenes []Scene
activeScene Scene
)
// Adds a scene to game.
// Returns false if the scene exists already.
// The first scene added will be set active.