2019-02-18 20:59:10 +00:00
|
|
|
// Load assets
|
|
|
|
Loader.addScenes([
|
2019-04-18 11:40:22 +00:00
|
|
|
"scenes/intro.md",
|
2019-04-26 13:35:04 +00:00
|
|
|
"scenes/act1.md",
|
|
|
|
"scenes/act1-end.md"
|
2019-02-18 20:59:10 +00:00
|
|
|
]);
|
|
|
|
Loader.load().then(function(){
|
2019-04-23 19:12:41 +00:00
|
|
|
|
2019-02-18 20:59:10 +00:00
|
|
|
Game.init();
|
2019-04-24 19:42:13 +00:00
|
|
|
/*Game.start();
|
2019-04-18 11:40:22 +00:00
|
|
|
|
2019-04-23 19:12:41 +00:00
|
|
|
Game.pause(); // just for sounds
|
|
|
|
|
2019-04-19 15:57:10 +00:00
|
|
|
// Set up...
|
2019-04-19 17:44:45 +00:00
|
|
|
/*SceneSetup.act1();
|
2019-04-19 15:57:10 +00:00
|
|
|
publish("hp_show");
|
|
|
|
hong({body:"phone1", mouth:"neutral", eyes:"neutral"});
|
2019-04-23 19:12:41 +00:00
|
|
|
_.whitebread = true;*/
|
|
|
|
|
2019-04-19 15:57:10 +00:00
|
|
|
// GO!
|
2019-04-23 19:12:41 +00:00
|
|
|
//music('battle', 0.5);
|
|
|
|
//Game.goto("act1f");
|
2019-04-24 19:42:13 +00:00
|
|
|
//Game.goto("intro");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
subscribe("START_GAME", function(){
|
|
|
|
|
|
|
|
$("#loading").style.display = "none";
|
|
|
|
Game.start();
|
|
|
|
|
2019-04-26 13:35:04 +00:00
|
|
|
SceneSetup.act1();
|
2019-04-25 18:07:41 +00:00
|
|
|
music('battle', {volume:0.5});
|
|
|
|
hong({body:"phone1"});
|
2019-04-26 13:35:04 +00:00
|
|
|
Game.goto("act1i");
|
|
|
|
//Game.goto("intro");
|
2019-04-18 11:40:22 +00:00
|
|
|
|
2019-02-18 20:59:10 +00:00
|
|
|
});
|