Updated for new scenes.
This commit is contained in:
@@ -32,9 +32,12 @@ func main() {
|
|||||||
// Example loading of two scenes
|
// Example loading of two scenes
|
||||||
func loadScenes(m *groovy.Manager) {
|
func loadScenes(m *groovy.Manager) {
|
||||||
//call the loaders for each scene
|
//call the loaders for each scene
|
||||||
loadSplash(m)
|
//loadSplash(m)
|
||||||
loadBsoft(m)
|
//loadBsoft(m)
|
||||||
loadMenu(m)
|
//loadMenu(m)
|
||||||
|
//loadNoise(m)
|
||||||
|
//loadSplashpad(m)
|
||||||
|
loadParallax(m)
|
||||||
|
|
||||||
//reset the manager to start scene 1
|
//reset the manager to start scene 1
|
||||||
m.ResetScenes()
|
m.ResetScenes()
|
||||||
@@ -55,8 +58,10 @@ func loadMenu(m *groovy.Manager) {
|
|||||||
1: {Description: "splash", SelectionEvent: groovy.RESET, Mapping: ebiten.Key1},
|
1: {Description: "splash", SelectionEvent: groovy.RESET, Mapping: ebiten.Key1},
|
||||||
2: {Description: "bsoft", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key2},
|
2: {Description: "bsoft", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key2},
|
||||||
3: {Description: "menu"},
|
3: {Description: "menu"},
|
||||||
4: {Description: "swing"},
|
4: {Description: "noise", SelectionEvent: groovy.COMPLETED, Mapping: ebiten.Key4},
|
||||||
5: {Description: "exit", SelectionEvent: groovy.ENDGAME, Mapping: ebiten.Key5},
|
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)
|
m.AddScene(&sceneMenu)
|
||||||
@@ -74,3 +79,19 @@ func loadBsoft(m *groovy.Manager) {
|
|||||||
sceneBsoft := splashmenu.NewBsoft()
|
sceneBsoft := splashmenu.NewBsoft()
|
||||||
m.AddScene(&sceneBsoft)
|
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