anxiety/scripts/intro/Intro_SceneSetup.js

27 lines
510 B
JavaScript
Raw Normal View History

2019-04-24 19:42:13 +00:00
Loader.addSounds([
{ id:"music_hum", src:"sounds/music/hum.mp3" },
{ id:"music_campus", src:"sounds/music/campus.mp3" }
]);
2019-03-17 18:41:19 +00:00
SceneSetup.intro = function(){
Game.resetScene();
2019-04-24 19:42:13 +00:00
// Music
music('campus', {volume:0.6});
2019-03-17 18:41:19 +00:00
// Background
2019-04-09 18:59:19 +00:00
var bg = new BG_Intro();
2019-03-17 18:41:19 +00:00
Game.scene.children.push(bg);
2019-05-05 19:56:00 +00:00
// TOTAL HACK
2019-09-07 21:19:53 +00:00
publish("hide_tabs");
2019-05-05 19:56:00 +00:00
2019-09-06 17:34:09 +00:00
};
subscribe("HACK_chselect", function(){
Game.choicesDOM.style.height = "250px";
});
subscribe("HACK_chselect_end", function(){
Game.choicesDOM.style.height = "130px";
});