anxiety/scripts/act1/Act1_SceneSetup.js

70 lines
1.3 KiB
JavaScript
Raw Normal View History

2019-04-24 19:42:13 +00:00
Loader.addSounds([
2019-04-25 18:07:41 +00:00
{ id:"music_battle", src:"sounds/music/battle.mp3" },
2019-05-05 19:56:00 +00:00
{ id:"music_pokemon", src:"sounds/music/pokemon.mp3" },
{ id:"dramatic", src:"sounds/sfx/dramatic.mp3" },
{ id:"fart", src:"sounds/sfx/fart.mp3" }
2019-04-24 19:42:13 +00:00
]);
2019-02-22 23:48:24 +00:00
SceneSetup.act1 = function(){
2019-02-18 20:59:10 +00:00
Game.resetScene();
2019-05-07 19:40:03 +00:00
// RESET HP
HP.reset();
2019-04-29 15:35:25 +00:00
// ATTACKS
_.attack_harm = 0;
_.attack_alone = 0;
_.attack_bad = 0;
2019-02-18 20:59:10 +00:00
// 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-04-18 11:40:22 +00:00
Game.scene.children.push(beebee);
};
SceneSetup.act1_outro = function(){
2019-04-23 19:12:41 +00:00
HP.hide();
2019-04-24 19:42:13 +00:00
clearText();
2019-04-18 11:40:22 +00:00
Game.resetScene();
2019-04-24 19:42:13 +00:00
// WHOOSH
sfx("whoosh");
2019-04-25 18:07:41 +00:00
music('campus', {volume:0.5, fade:1});
2019-04-24 19:42:13 +00:00
2019-04-18 11:40:22 +00:00
// Background
var bg = new BG_Act1_Outro();
Game.scene.children.push(bg);
2019-02-18 20:59:10 +00:00
2019-04-26 13:35:04 +00:00
};
SceneSetup.act1_end = function(){
Game.resetScene();
music(null);
2019-04-26 17:08:31 +00:00
stopAllSounds();
// HACK
2019-05-05 19:56:00 +00:00
Game.TEXT_SPEED = 50;
2019-04-26 17:08:31 +00:00
Game.FORCE_TEXT_Y = 52;
2019-05-05 19:56:00 +00:00
Game.FORCE_CANT_SKIP = true;
2019-04-26 17:08:31 +00:00
$("#game_container").style.background = "#000";
$("#game_choices").style.display = "none";
2019-04-26 13:35:04 +00:00
2019-04-30 15:20:45 +00:00
// KILL
Game.scene.kill = function(){
Game.FORCE_TEXT_Y = -1;
2019-05-05 19:56:00 +00:00
Game.FORCE_CANT_SKIP = false;
2019-04-30 15:20:45 +00:00
$("#game_container").style.background = "";
$("#game_choices").style.display = "";
};
2019-02-18 20:59:10 +00:00
};