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",
|
2019-05-07 14:55:09 +00:00
|
|
|
"scenes/act1_end.md",
|
|
|
|
//"scenes/PROMO.md"
|
2019-02-18 20:59:10 +00:00
|
|
|
]);
|
2019-05-05 19:56:00 +00:00
|
|
|
Loader.load(function(progress){
|
2019-04-23 19:12:41 +00:00
|
|
|
|
2019-05-05 19:56:00 +00:00
|
|
|
$("#loading_bar_bg").style.height = (progress*50)+"px";
|
|
|
|
|
|
|
|
}).then(function(){
|
|
|
|
|
|
|
|
$("#loading").setAttribute("loaded","yes");
|
2019-04-29 19:19:44 +00:00
|
|
|
$("#loading").onclick = function(){
|
2019-05-05 19:56:00 +00:00
|
|
|
sfx("pop");
|
2019-04-29 19:19:44 +00:00
|
|
|
publish('START_GAME');
|
|
|
|
};
|
2019-04-27 13:11:06 +00:00
|
|
|
|
2019-02-18 20:59:10 +00:00
|
|
|
Game.init();
|
2019-04-24 19:42:13 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
subscribe("START_GAME", function(){
|
2019-05-05 19:56:00 +00:00
|
|
|
|
2019-04-24 19:42:13 +00:00
|
|
|
$("#loading").style.display = "none";
|
|
|
|
Game.start();
|
|
|
|
|
2019-05-05 19:56:00 +00:00
|
|
|
|
|
|
|
/*SceneSetup.act1();
|
2019-05-01 16:06:36 +00:00
|
|
|
//music('battle', {volume:0.5});
|
2019-04-25 18:07:41 +00:00
|
|
|
hong({body:"phone1"});
|
2019-05-01 16:06:36 +00:00
|
|
|
publish("hp_show");
|
2019-04-29 19:19:44 +00:00
|
|
|
|
|
|
|
_.seppuku = true;
|
|
|
|
_.hookuphole = true;
|
2019-05-05 19:56:00 +00:00
|
|
|
_.catmilk = true;*/
|
2019-04-29 19:19:44 +00:00
|
|
|
|
2019-04-27 13:08:25 +00:00
|
|
|
|
2019-05-05 19:56:00 +00:00
|
|
|
/*_.attack_harm = 0;
|
|
|
|
_.attack_alone = 0;
|
|
|
|
_.attack_bad = 0;
|
|
|
|
Game.goto("act1_end");
|
|
|
|
*/
|
|
|
|
|
|
|
|
Game.goto("intro");
|
2019-04-18 11:40:22 +00:00
|
|
|
|
2019-02-18 20:59:10 +00:00
|
|
|
});
|