anxiety/scripts/act1/Act1_SceneSetup.js

23 lines
384 B
JavaScript
Raw Normal View History

2019-02-22 23:48:24 +00:00
SceneSetup.act1 = function(){
2019-02-18 20:59:10 +00:00
Game.resetScene();
// Background
var bg = new BG_Anxiety();
Game.scene.children.push(bg);
// Hong
2019-02-22 23:48:24 +00:00
var hong = new Act1_Hong();
2019-02-18 20:59:10 +00:00
Game.scene.children.push(hong);
// Beebee
2019-02-22 23:48:24 +00:00
var beebee = new Act1_Beebee();
2019-02-20 18:45:23 +00:00
subscribe("scene", function(command){
switch(command){
case "add_beebee":
Game.scene.children.push(beebee);
break;
}
});
2019-02-18 20:59:10 +00:00
};