anxiety/scripts/main.js

35 lines
561 B
JavaScript
Raw Normal View History

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-23 19:12:41 +00:00
"scenes/act1.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();
SceneSetup.act1();
Game.goto("act1i");
//Game.goto("intro");
2019-04-18 11:40:22 +00:00
2019-02-18 20:59:10 +00:00
});