- mp4 video demo1 - Intro + Scene1
- code demo1 + structure
- keys | 0: Intro, 1: Scene-1, 2: Scene-2, --- 9: Scene-9...etc
Follow this new format for building the scenes:
// Intro scene constructor function
function Intro() {
this.setup = function() {
// Code
}
this.draw = function() {
// Code
}
this.keyPressed = function() {
// switch the scene
this.sceneManager.showScene( Game );
}
}
// Main games scene constructor function
function Game() {
this.setup = function() {
// Code
}
this.draw = function() {
// Code
}
}