Updated for new scenes.
This commit is contained in:
@@ -32,9 +32,12 @@ func main() {
|
||||
// Example loading of two scenes
|
||||
func loadScenes(m *groovy.Manager) {
|
||||
//call the loaders for each scene
|
||||
loadSplash(m)
|
||||
loadBsoft(m)
|
||||
loadMenu(m)
|
||||
//loadSplash(m)
|
||||
//loadBsoft(m)
|
||||
//loadMenu(m)
|
||||
//loadNoise(m)
|
||||
//loadSplashpad(m)
|
||||
loadParallax(m)
|
||||
|
||||
//reset the manager to start scene 1
|
||||
m.ResetScenes()
|
||||
@@ -55,8 +58,10 @@ func loadMenu(m *groovy.Manager) {
|
||||
1: {Description: "splash", SelectionEvent: groovy.RESET, Mapping: ebiten.Key1},
|
||||
2: {Description: "bsoft", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key2},
|
||||
3: {Description: "menu"},
|
||||
4: {Description: "swing"},
|
||||
5: {Description: "exit", SelectionEvent: groovy.ENDGAME, Mapping: ebiten.Key5},
|
||||
4: {Description: "noise", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key4},
|
||||
5: {Description: "guy", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key5},
|
||||
6: {Description: "parallax", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key6},
|
||||
7: {Description: "exit", SelectionEvent: groovy.ENDGAME, Mapping: ebiten.Key7},
|
||||
})
|
||||
|
||||
m.AddScene(&sceneMenu)
|
||||
@@ -74,3 +79,19 @@ func loadBsoft(m *groovy.Manager) {
|
||||
sceneBsoft := splashmenu.NewBsoft()
|
||||
m.AddScene(&sceneBsoft)
|
||||
}
|
||||
|
||||
func loadNoise(m *groovy.Manager) {
|
||||
sceneNoisy := splashmenu.NewNoisy()
|
||||
m.AddScene(&sceneNoisy)
|
||||
}
|
||||
|
||||
func loadSplashpad(m *groovy.Manager) {
|
||||
sceneSplashpad := splashmenu.NewSplashPad()
|
||||
m.AddScene(&sceneSplashpad)
|
||||
}
|
||||
|
||||
func loadParallax(m *groovy.Manager) {
|
||||
sceneParallax := splashmenu.NewParallax()
|
||||
m.AddScene(&sceneParallax)
|
||||
sceneParallax.InitializeParallax()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user