more sounds

This commit is contained in:
Nicky Case 2019-04-25 14:07:41 -04:00
parent 872444a27b
commit d3e271256a
19 changed files with 224 additions and 96 deletions

View File

@ -11,7 +11,8 @@ Ball Bounce: https://freesound.org/people/13GPanska_Lakota_Jan/sounds/378355/
Faucet: https://freesound.org/people/calivintage/sounds/95709/ Faucet: https://freesound.org/people/calivintage/sounds/95709/
Pop: https://freesound.org/people/onikage22/sounds/240566/ Pop: https://freesound.org/people/onikage22/sounds/240566/
Angry Scream: https://freesound.org/people/cdrk/sounds/21324/ Angry Scream: https://freesound.org/people/cdrk/sounds/21324/
Explosion: https://freesound.org/people/Link-Boy/sounds/156615/ Dirty Explosion: https://freesound.org/people/Link-Boy/sounds/156615/
Clothes Rustle: https://freesound.org/people/leonelmail/sounds/427866/
Various Assets from Kenney's packs: Various Assets from Kenney's packs:
Beebee's & Hong's voice from: https://kenney.nl/assets/digital-audio Beebee's & Hong's voice from: https://kenney.nl/assets/digital-audio

View File

@ -33,8 +33,8 @@
<script src="scripts/lib/minpubsub.min.js"></script> <script src="scripts/lib/minpubsub.min.js"></script>
<script src="scripts/lib/howler.min.js"></script> <script src="scripts/lib/howler.min.js"></script>
<script src="scripts/game/Game.js"></script>
<script src="scripts/game/Loader.js"></script> <script src="scripts/game/Loader.js"></script>
<script src="scripts/game/Game.js"></script>
<script src="scripts/game/Sprite.js"></script> <script src="scripts/game/Sprite.js"></script>
<script src="scripts/game/HP.js"></script> <script src="scripts/game/HP.js"></script>
<script src="scripts/game/BG_Anxiety.js"></script> <script src="scripts/game/BG_Anxiety.js"></script>

View File

@ -24,7 +24,7 @@ n: QUICK, WARN THEM!
[You're eating alone for lunch! Again!](#act1a_alone) [You're eating alone for lunch! Again!](#act1a_alone)
[You're not studying while eating!](#act1a_study) [You're not productive while eating!](#act1a_study)
[That white bread's bad for you!](#act1a_bread) [That white bread's bad for you!](#act1a_bread)
@ -71,24 +71,26 @@ n: YOU USED *FEAR OF BEING UNLOVED*
# act1a_study # act1a_study
b: You should multi-task and study during meals!
`hong({eyes:"0_annoyed"})` `hong({eyes:"0_annoyed"})`
h: I'd rather not get crumbs on my textbo-- h: Um, I'd rather not get crumbs on my textbook.
``` ```
bb({mouth:"normal", eyes:"fear"}); bb({mouth:"normal", eyes:"fear"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: If you don't study you'll be expelled from college and you'll waste your parents' money and then they'll say b: If you don't study you'll be expelled from college and your parents will say
`bb({mouth:"small", eyes:"narrow"})` `bb({mouth:"small", eyes:"narrow"})`
b: “you have brought dishonor to our family, now we'll all have to commit seppuku” b: “you have brought dishonor to our family, now we have to all commit seppuku”
``` ```
bb({body:"fear", mouth:"normal", eyes:"fear"}); bb({body:"fear", mouth:"normal", eyes:"fear"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: and then you'll- b: and then you'll-
@ -120,10 +122,10 @@ h: Have those studies been replicat--
``` ```
bb({body:"fear", mouth:"normal", eyes:"fear"}); bb({body:"fear", mouth:"normal", eyes:"fear"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: Processed wheat will spike your blood sugar and ruin your organs so they'll have to amputate all your limbs and then you'll- b: Processed wheat will spike your blood sugar so they'll have to amputate all your limbs and then you'll-
`bb({body:"panic"})` `bb({body:"panic"})`
@ -164,22 +166,29 @@ n: FEAR OF *BEING UNLOVED* #alone#
n: AND FEAR OF *BEING A BAD PERSON* #bad# n: AND FEAR OF *BEING A BAD PERSON* #bad#
n: (PRO TIP: TRY PLAYING THE CHOICES THAT MOST HIT YOUR DEEPEST DARKEST FEARS!) n: (PRO TIP: TRY PLAYING THE CHOICES THAT PERSONALLY HIT YOUR DEEPEST, DARKEST FEARS!)
h: ... h: ...
``` ```
hong({body:"putaway"}); hong({body:"putaway"});
Game.OVERRIDE_TEXT_SPEED = 2.0; sfx("rustle");
``` ```
(...1000)
`Game.OVERRIDE_TEXT_SPEED = 1.5;`
h: you know what maybe it's time to check my phone. h: you know what maybe it's time to check my phone.
`hong({body:"phone1", mouth:"neutral", eyes:"neutral"})` ```
sfx("rustle2");
hong({body:"phone1", mouth:"neutral", eyes:"neutral"})
```
n: PROTECT YOUR HUMAN n: PROTECT YOUR HUMAN
n: FROM THE WORLD. FROM OTHER PEOPLE. FROM THEMSELF. n: FROM THE WORLD. FROM OTHER PEOPLE. FROM THEMSELVES.
n: GOOD LUCK n: GOOD LUCK
@ -207,7 +216,7 @@ b: Doesn't that weirdo throw a party *every* weekend?
`bb({eyes:"uncertain_right"});` `bb({eyes:"uncertain_right"});`
b: Must be some kind of underlying neurosis there. b: Must be some underlying neurosis there.
`hong({eyes:"surprise"});` `hong({eyes:"surprise"});`
@ -234,11 +243,13 @@ b: Fifteen cigarettes a day, human. Fifteen.
{{/if}} {{/if}}
{{if !_.fifteencigs}} {{if !_.fifteencigs}}
b: And then no one will show up at your funeral then they'll just dump your ashes into the ocean and you become whale poop. b: Then no one will show up at your funeral, they'll dump your ashes into the ocean, and you become WHALE POOP.
{{/if}} {{/if}}
{{if !_.fifteencigs}} `_.whalepoop = true` {{/if}} {{if !_.fifteencigs}} `_.whalepoop = true` {{/if}}
(...500)
``` ```
hong({mouth:"shock", eyes:"shock"}); hong({mouth:"shock", eyes:"shock"});
attack("10p", "alone"); attack("10p", "alone");
@ -348,7 +359,7 @@ b: So if you go you'll make them feel bad, but if you reject their invite you'll
`bb({body:"fear", eyes:"fear"});` `bb({body:"fear", eyes:"fear"});`
`Game.OVERRIDE_TEXT_SPEED = 2.0;` `Game.OVERRIDE_TEXT_SPEED = 1.5;`
b: ALL YOU DO IS MAKE PEOPLE FEEL BAD, SO YOU SHOULD FEEL BAD b: ALL YOU DO IS MAKE PEOPLE FEEL BAD, SO YOU SHOULD FEEL BAD
@ -393,7 +404,10 @@ h: What's new on Twitter?
# act1d_news # act1d_news
`bb({eyes:"pained1"});` ```
bb({eyes:"pained1"});
music(null, {fade:2});
```
b: God, it feels like the world's burning, isn't it? b: God, it feels like the world's burning, isn't it?
@ -425,6 +439,7 @@ attack("10p", "harm");
`_.badnews=true` `_.badnews=true`
``` ```
music('battle', {volume:0.5});
hong({mouth:"anger", eyes:"anger"}); hong({mouth:"anger", eyes:"anger"});
bb({body:"normal", mouth:"normal", eyes:"uncertain"}); bb({body:"normal", mouth:"normal", eyes:"uncertain"});
Game.OVERRIDE_TEXT_SPEED = 1.5; Game.OVERRIDE_TEXT_SPEED = 1.5;
@ -500,12 +515,12 @@ h: o-KAY, gonna try Snapchat.
`hong({mouth:"smile", eyes:"neutral"});` `hong({mouth:"smile", eyes:"neutral"});`
h: Heh ya that's cute I'll retweet th-- h: Heh ya that's cute, just retweeted it, I thi--
``` ```
hong({mouth:"shock", eyes:"shock"}); hong({mouth:"shock", eyes:"shock"});
bb({body:"scream_anger"}); bb({body:"scream_anger"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.8;
``` ```
b: CATS CAN'T DIGEST MILK AND YOU'RE A TERRIBLE PERSON FOR ENJOYING ANIMAL ABUSE b: CATS CAN'T DIGEST MILK AND YOU'RE A TERRIBLE PERSON FOR ENJOYING ANIMAL ABUSE
@ -618,12 +633,12 @@ hong({eyes:"sad", mouth:"sad"});
Game.OVERRIDE_TEXT_SPEED = 1.5; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: In 2003 a Rhode Island nightclub had a fire and the panic made people jam the exits so 100 people were crushed or burned to death- b: In 2003 a Rhode Island nightclub had a fire and the panic made people jam the exits so 100 people burned to death-
``` ```
bb({body:"normal", mouth:"normal", eyes:"fear"}); bb({body:"normal", mouth:"normal", eyes:"fear"});
hong({mouth:"shock"}); hong({mouth:"shock"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: DO YOU WANT THAT TO HAPPEN TO YOU- b: DO YOU WANT THAT TO HAPPEN TO YOU-
@ -707,10 +722,10 @@ h: Shut up shut up I'll keep it as no!
``` ```
bb({body:"fear", eyes:"fear", mouth:"normal"}); bb({body:"fear", eyes:"fear", mouth:"normal"});
Game.OVERRIDE_TEXT_SPEED = 2.0; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: Chronic loneliness can increase your cortisol and increase your risk of cardiovascular disease and stroke! b: Chronic loneliness increases your cortisol as well as risk for cardiovascular disease and stroke!
``` ```
hong({mouth:"shock", eyes:"shock"}); hong({mouth:"shock", eyes:"shock"});
@ -747,7 +762,7 @@ bb({body:"fear", eyes:"fear", mouth:"normal"});
Game.OVERRIDE_TEXT_SPEED = 1.7; Game.OVERRIDE_TEXT_SPEED = 1.7;
``` ```
b: Just say *one* thing out of line and all your so-called friends will drag you through the street and laugh at your shredded corpse! b: Say *one* thing wrong and all your so-called friends will drag you through the street for internet points!
``` ```
hong({mouth:"shock", eyes:"shock"}); hong({mouth:"shock", eyes:"shock"});
@ -813,7 +828,13 @@ bb({body:"fear"});
Game.OVERRIDE_TEXT_SPEED = 1.5; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
b: Do you want your freak skeleton to end up in the Warren Anatomical Museum?! b: Do you want your freak skeleton to end up in a medical textbook?!
`bb({eyes:"narrow"});`
{{if _.seppuku}}
b: Though apparently you don't *read* textbooks anyway, you terrible slacker.
{{/if}}
``` ```
hong({mouth:"shock", eyes:"shock"}); hong({mouth:"shock", eyes:"shock"});
@ -901,20 +922,28 @@ bb({body:"normal", mouth:"normal", eyes:"normal"});
h: Whatever. New Tinder notification. h: Whatever. New Tinder notification.
`bb({eyes:"uncertain"})`
b: What, that hookup app?
`hong({eyes:"annoyed"})`
h: It's not a hookup app, it's just a way to meet new peopl--
`bb({eyes:"narrow"})`
b: It's a hookup app.
`hong({eyes:"surprise", mouth:"smile"})` `hong({eyes:"surprise", mouth:"smile"})`
h: Oh I got a match! They look cute! h: Oh, I got a match! They look cute!
`bb({eyes:"normal_right"})`
b: Is that so, human whom I should clarify is 18+?
``` ```
bb({eyes:"normal"}); bb({eyes:"narrow_eyebrow"});
hong({eyes:"sad", mouth:"anger"}) hong({eyes:"sad", mouth:"anger"})
``` ```
h: Please, please don't ruin this for m-- h: Please don't ruin this for m--
``` ```
bb({body:"panic"}); bb({body:"panic"});
@ -969,29 +998,64 @@ attack("30p", "alone");
b: You think other people's genitals are Pokémon for you to collect? b: You think other people's genitals are Pokémon for you to collect?
`bb({body:"sing", eyes:"pretty", mouth:"normal"})` ```
bb({body:"sing", eyes:"pretty", mouth:"shut"});
music("pokemon");
Game.clearText();
```
b: ♫ [pokemon theme song] ```
Game.FORCE_TEXT_DURATION = 1000;
Game.FORCE_NO_VOICE = true;
```
b: ♫ I wanna be the slutti-est b: ♫ (pokemon theme song)-
`bb({eyes:"narrow", mouth:"small"})` (...5600)
b: ♫ Like no one ever was ```
bb({mouth:"normal"});
Game.FORCE_TEXT_DURATION = 2400;
```
`bb({eyes:"pretty"})` b: ♫ I wanna be, the slutti-est-
b: ♫ Thighs n' ass, voluptuous breast (...500)
`bb({eyes:"fear", mouth:"normal"})` ```
bb({eyes:"narrow", mouth:"small"});
Game.FORCE_TEXT_DURATION = 2100;
```
b: ♫ with sweaty dick and balls! b: ♫ Like no one ever was-
(...1500)
```
bb({eyes:"pretty"});
Game.FORCE_TEXT_DURATION = 2300;
```
b: ♫ Thighs n' ass, voluptuous breast-
(...500)
```
bb({eyes:"fear", mouth:"normal"});
Game.FORCE_TEXT_DURATION = 2000;
```
b: ♫ with sweaty dick and balls!-
(...1000)
`bb({eyes:"smile", mouth:"smile"})` `bb({eyes:"smile", mouth:"smile"})`
b: ♫ PERVY-MON, GOTTA CA-- b: ♫ PERVY-MON, GOTTA CA-
``` ```
Game.clearText();
music(false);
bb({body:"normal", mouth:"normal", eyes:"normal"}); bb({body:"normal", mouth:"normal", eyes:"normal"});
Game.OVERRIDE_TEXT_SPEED = 1.5; Game.OVERRIDE_TEXT_SPEED = 1.5;
``` ```
@ -1014,11 +1078,11 @@ attack("30p", "bad");
`Game.OVERRIDE_TEXT_SPEED = 1.5;` `Game.OVERRIDE_TEXT_SPEED = 1.5;`
{{if _.whitebread}} {{if _.whitebread}}
b: They'll trap you in a well and force-feed you white bread to fatten you up so they can wear your skin like a swimsuit! b: They'll trap you in a well and force-feed you white bread to fatten you up so they can wear your skin like a suit!
{{/if}} {{/if}}
{{if _.seppuku}} {{if _.seppuku}}
b: They'll bludgeon you with a textbook then slice your abdomen open and say "this is what you get for not studying, SEPUKKU'D" b: They'll bludgeon you with a textbook and slice your belly open and say "this is what you get for not studying, SEPUKKU'D"
{{/if}} {{/if}}
{{if !_.whitebread && !_.seppuku}} {{if !_.whitebread && !_.seppuku}}
@ -1082,11 +1146,11 @@ b: Hey... human...
b: It'll be okay. b: It'll be okay.
(...300) (...600)
`bb({body:"point_heart", eyes:"look_sad_smile", mouth:"smile"});` `bb({body:"point_heart", eyes:"look_sad_smile", mouth:"smile"});`
b: As long as you've got me to protect you, you'll never be in danger. b: As your loyal protector, I'll always keep an eye out for danger, and do my best to keep you safe.
`bb({body:"normal", eyes:"look_sad", mouth:"smile"});` `bb({body:"normal", eyes:"look_sad", mouth:"smile"});`
@ -1099,7 +1163,7 @@ bb({body:"normal", eyes:"normal", mouth:"normal"});
hong({body:"phone1", eyes:"neutral", mouth:"neutral"}); hong({body:"phone1", eyes:"neutral", mouth:"neutral"});
``` ```
h: Last one. Instagram. What you got? h: Last app. Instagram. What you got?
`hong({eyes:"sad"});` `hong({eyes:"sad"});`
@ -1107,15 +1171,15 @@ h: It's... more party pictures.
`hong({mouth:"sad"});` `hong({mouth:"sad"});`
h: Everyone looks so happy. h: Everyone looks so happy. Free from worry. Free from anxiety.
`hong({mouth:"anger"});` `hong({mouth:"anger"});`
h: Everyone looks *fine*. h: God, why can't I be like them? Why can't I just be *normal?*
`bb({eyes:"normal_right"});` `bb({eyes:"normal_right"});`
b: Speaking of which, about this weekend's party invite. Here's my FINAL decision: b: Speaking of parties, about this weekend's invite. Here's my FINAL decision:
`bb({eyes:"normal"});` `bb({eyes:"normal"});`
@ -1172,19 +1236,28 @@ h: NOT because you want me to, but because *I* want to.
h: Precisely BECAUSE you don't want me to. h: Precisely BECAUSE you don't want me to.
{{/if}} {{/if}}
`hong({body:"putaway"});` ```
hong({body:"putaway"});
sfx("rustle");
```
h: You're NOT in control of me. h: You're NOT in control of me.
`hong({body:"0_sammich", eyes:"0_annoyed", mouth:"0_neutral"});` ```
sfx("rustle2");
hong({body:"0_sammich", eyes:"0_annoyed", mouth:"0_neutral"});
```
h: Now excuse me while I eat this delicious sandwich in goddamn peace. h: Now excuse me while I eat this delicious sandwich in goddamn peace.
`hong({body:"2_sammich_eat"})` `hong({body:"2_sammich_eat"});`
(...600) (...600)
`hong({body:"2_sammich_eaten", eyes:"0_lookaway", mouth:"0_chew1"})` ```
sfx("sandwich");
hong({body:"2_sammich_eaten", eyes:"0_lookaway", mouth:"0_chew1"})
```
(...600) (...600)
@ -1196,14 +1269,14 @@ Game.OVERRIDE_TEXT_SPEED = 0.5;
b: ... b: ...
``` ```
bb({eyes:"uncertain_right"}); bb({eyes:"normal_right"});
Game.OVERRIDE_TEXT_SPEED = 1; Game.OVERRIDE_TEXT_SPEED = 1;
``` ```
b: ... b: ...
``` ```
bb({eyes:"narrow"}); bb({eyes:"fear"});
Game.OVERRIDE_TEXT_SPEED = 4; Game.OVERRIDE_TEXT_SPEED = 4;
``` ```
@ -1213,14 +1286,21 @@ b: ..................
`bb({mouth:"normal"});` `bb({mouth:"normal"});`
["Alone."](#act1h_loneliness) [AHHHHH WE'RE GONNA DIE](#act1h_death) `Game.OVERRIDE_CHOICE_LINE = true;`
["Death."](#act1h_death) [AHHHHH EVERYONE HATES US](#act1h_loneliness) `Game.OVERRIDE_CHOICE_LINE = true;`
["Bad person."](#act1h_worthless) [AHHHHH WE'RE HORRIBLE PEOPLE](#act1h_worthless) `Game.OVERRIDE_CHOICE_LINE = true;`
# act1h_death # act1h_death
```
bb({body:"fear"});
Game.OVERRIDE_TEXT_SPEED = 3;
```
b: AHHHHH WE'RE GONNA DIE AAAAAAHHHHHHH
``` ```
hong({body:"3_defeated1"}); hong({body:"3_defeated1"});
attack("100p", "harm"); attack("100p", "harm");
@ -1232,6 +1312,13 @@ attack("100p", "harm");
# act1h_loneliness # act1h_loneliness
```
bb({body:"fear"});
Game.OVERRIDE_TEXT_SPEED = 3;
```
b: AHHHHH EVERYONE HATES US AAAAAAHHHHHHH
``` ```
hong({body:"3_defeated1"}); hong({body:"3_defeated1"});
attack("100p", "alone"); attack("100p", "alone");
@ -1243,6 +1330,13 @@ attack("100p", "alone");
# act1h_worthless # act1h_worthless
```
bb({body:"fear"});
Game.OVERRIDE_TEXT_SPEED = 3;
```
b: AHHHHH WE'RE HORRIBLE PEOPLE AAAAAAHHHHHHH
``` ```
hong({body:"3_defeated1"}); hong({body:"3_defeated1"});
attack("100p", "bad"); attack("100p", "bad");
@ -1255,12 +1349,14 @@ attack("100p", "bad");
# act1i # act1i
``` ```
bb({mouth:"smile_lock", eyes:"smile"}); bb({mouth:"smile_lock", eyes:"smile", body:"normal"});
music('battle', {volume:0.5}); music('battle', {volume:0.5});
``` ```
n: CONGRATULATIONS n: CONGRATULATIONS
(...500)
n: YOU HAVE SUCCESSFULLY PROTECTED YOUR HUMAN n: YOU HAVE SUCCESSFULLY PROTECTED YOUR HUMAN
n: LOOK HOW GRATEFUL THEY ARE n: LOOK HOW GRATEFUL THEY ARE
@ -1277,9 +1373,9 @@ n: PICK YOUR ENDING MOVE
n: *FINISH THEM* n: *FINISH THEM*
[&lt; FIGHT: Punish your phone! &gt;](#act1i_phone) `Game.OVERRIDE_CHOICE_LINE=true` [{FIGHT: Punish your stressful phone!}](#act1i_phone) `Game.OVERRIDE_CHOICE_LINE=true`
[&lt; FLIGHT: Curl up in a ball and cry! &gt;](#act1i_cry) `Game.OVERRIDE_CHOICE_LINE=true` [{FLIGHT: Curl up in a ball and cry!}](#act1i_cry) `Game.OVERRIDE_CHOICE_LINE=true`
# act1i_phone # act1i_phone

View File

@ -8,7 +8,12 @@ Loader.addSounds([
{ id:"bounce1", src:"sounds/sfx/bounce1.mp3" }, { id:"bounce1", src:"sounds/sfx/bounce1.mp3" },
{ id:"bounce2", src:"sounds/sfx/bounce2.mp3" }, { id:"bounce2", src:"sounds/sfx/bounce2.mp3" },
{ id:"bounce3", src:"sounds/sfx/bounce3.mp3" }, { id:"bounce3", src:"sounds/sfx/bounce3.mp3" },
{ id:"faucet", src:"sounds/sfx/faucet.mp3" } { id:"faucet", src:"sounds/sfx/faucet.mp3" },
{ id:"dirty_explosion", src:"sounds/sfx/dirty_explosion.mp3" },
{ id:"rustle", src:"sounds/sfx/rustle.mp3" },
{ id:"rustle2", src:"sounds/sfx/rustle2.mp3" },
{ id:"act1_scream", src:"sounds/sfx/act1_scream.mp3" }
]); ]);
@ -253,19 +258,19 @@ function BG_Act1_Outro(){
"2-3", "2-3",
"3-5", "3-5",
"4-7", "4-7",
"30-90", "30-90-act1_scream",
"31-120", "31-150-rustle",
"32-135", "32-165-dirty_explosion", // TODO? parallax shake?
"33-137", "33-167",
"34-139", "34-169",
"35-142", "35-172",
"36-145", "36-175",
"37-170", "37-200",
"38-185", "38-215",
//"37-200", // LOOP every 15 //"37-200", // LOOP every 15
]; ];
HONG_FRAMES_FIGHT = convertFrames(HONG_FRAMES_FIGHT); HONG_FRAMES_FIGHT = convertFrames(HONG_FRAMES_FIGHT);
addLoop(HONG_FRAMES_FIGHT, 37, 185+15, 2, 15); // add in the loop addLoop(HONG_FRAMES_FIGHT, 37, 215+15, 2, 15); // add in the loop
var HONG_FRAMES_FLIGHT = [ var HONG_FRAMES_FLIGHT = [
"1-0", "1-0",
@ -318,15 +323,15 @@ function BG_Act1_Outro(){
var SMOKING_CRATER = [ var SMOKING_CRATER = [
"46-0", // BLANK "46-0", // BLANK
"39-135", // BAM "39-165", // BAM
"40-137", "40-167",
"41-142", "41-172",
"42-147", "42-177",
"43-152", "43-182",
"44-157" "44-187"
]; ];
SMOKING_CRATER = convertFrames(SMOKING_CRATER); SMOKING_CRATER = convertFrames(SMOKING_CRATER);
addLoop(SMOKING_CRATER, 40, 157+5, 5, 5); // add in loop addLoop(SMOKING_CRATER, 40, 187+5, 5, 5); // add in loop
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -1,5 +1,6 @@
Loader.addSounds([ Loader.addSounds([
{ id:"music_battle", src:"sounds/music/battle.mp3" } { id:"music_battle", src:"sounds/music/battle.mp3" },
{ id:"music_pokemon", src:"sounds/music/pokemon.mp3" }
]); ]);
SceneSetup.act1 = function(){ SceneSetup.act1 = function(){
@ -27,7 +28,7 @@ SceneSetup.act1_outro = function(){
// WHOOSH // WHOOSH
sfx("whoosh"); sfx("whoosh");
music('campus', {volume:0.5, fade:2}); music('campus', {volume:0.5, fade:1});
// Background // Background
var bg = new BG_Act1_Outro(); var bg = new BG_Act1_Outro();

View File

@ -245,8 +245,10 @@ window.clearText = Game.clearText;
// Execute text! Just add it to text DOM. // Execute text! Just add it to text DOM.
Game.TEXT_SPEED = 60; // 70; Game.TEXT_SPEED = 60; // 70;
Game.OVERRIDE_TEXT_SPEED = 1; Game.OVERRIDE_TEXT_SPEED = 1;
Game.FORCE_TEXT_DURATION = -1;
Game.WHO_IS_SPEAKING = null; // "h", "b", "n" etc... Game.WHO_IS_SPEAKING = null; // "h", "b", "n" etc...
Game.CURRENT_SPEAKING_SPEED = 1; Game.CURRENT_SPEAKING_SPEED = 1;
Game.FORCE_NO_VOICE = false;
Game.executeText = function(line){ Game.executeText = function(line){
return new RSVP.Promise(function(resolve){ return new RSVP.Promise(function(resolve){
@ -291,6 +293,9 @@ Game.executeText = function(line){
// Add the text // Add the text
var interval = 0; var interval = 0;
var SPEED = Math.round(Game.TEXT_SPEED / Game.OVERRIDE_TEXT_SPEED); var SPEED = Math.round(Game.TEXT_SPEED / Game.OVERRIDE_TEXT_SPEED);
if(Game.FORCE_TEXT_DURATION>0){
SPEED = Math.round(Game.FORCE_TEXT_DURATION/dialogue.length);
}
if(speaker!="n" && speaker!="m"){ if(speaker!="n" && speaker!="m"){
// Put in the text, each character a DIFFERENT SPAN... // Put in the text, each character a DIFFERENT SPAN...
@ -323,25 +328,27 @@ Game.executeText = function(line){
if(i==dialogue.length-1 && chr=="-") break; if(i==dialogue.length-1 && chr=="-") break;
// for scopin' // for scopin'
(function(index, interval, speaker){ (function(index, interval, speaker, forceNoSound){
Game.setTimeout(function(){ Game.setTimeout(function(){
// Show it // Show it
div.children[index].style.opacity = 1; div.children[index].style.opacity = 1;
// And SOUND? // And SOUND?
var chr = div.children[index].innerHTML; if(!forceNoSound){
if(chr!=" "){ var chr = div.children[index].innerHTML;
if(speaker=="h"){ if(chr!=" "){
voice("hong", {volume:0.3}); if(speaker=="h"){
} voice("hong", {volume:0.3});
if(speaker=="b"){ }
voice("beebee", {volume:0.3}); if(speaker=="b"){
voice("beebee", {volume:0.5});
}
} }
} }
}, interval); }, interval);
})(i, interval, speaker); })(i, interval, speaker, Game.FORCE_NO_VOICE);
// Bigger interval // Bigger interval
if(i!=dialogue.length-1){ // NOT last if(i!=dialogue.length-1){ // NOT last
@ -464,6 +471,8 @@ Game.executeText = function(line){
// Return overrides to default // Return overrides to default
Game.OVERRIDE_TEXT_SPEED = 1; Game.OVERRIDE_TEXT_SPEED = 1;
Game.FORCE_TEXT_DURATION = -1;
Game.FORCE_NO_VOICE = false;
// Return promise // Return promise
var nextLineDelay = Game.TEXT_SPEED*7; // don't override this var nextLineDelay = Game.TEXT_SPEED*7; // don't override this
@ -477,6 +486,13 @@ Game.executeText = function(line){
} }
// CHOICE UI SOUNDS
Loader.addSounds([
{ id:"ui_show_choice", src:"sounds/ui/show_choice.mp3" },
{ id:"ui_click", src:"sounds/ui/click.mp3" },
{ id:"ui_hover", src:"sounds/ui/hover.mp3" }
]);
// Execute choice! Add it to choice DOM. // Execute choice! Add it to choice DOM.
Game.OVERRIDE_CHOICE_LINE = false; Game.OVERRIDE_CHOICE_LINE = false;
Game.executeChoice = function(line){ Game.executeChoice = function(line){
@ -513,16 +529,23 @@ Game.executeChoice = function(line){
} }
Game.OVERRIDE_CHOICE_LINE = false; Game.OVERRIDE_CHOICE_LINE = false;
// Play sound
sfx("ui_click");
// Goto that choice, now! // Goto that choice, now!
Game.goto(choiceID); Game.goto(choiceID);
}; };
div.onmouseover = function(){
sfx("ui_hover");
};
// Add choice, animated! // Add choice, animated!
div.style.top = "150px"; div.style.top = "150px";
Game.choicesDOM.appendChild(div); Game.choicesDOM.appendChild(div);
setTimeout(function(){ setTimeout(function(){
div.style.top = "0px"; div.style.top = "0px";
sfx("ui_show_choice", {volume:0.4});
},0); },0);
// If it's too big, shrink font size // If it's too big, shrink font size

View File

@ -35,7 +35,7 @@ window.music = function(song, options){
if(window.CURRENT_MUSIC) window.CURRENT_MUSIC.stop(); if(window.CURRENT_MUSIC) window.CURRENT_MUSIC.stop();
}else{ }else{
var currentVolume = window.CURRENT_MUSIC.volume(); var currentVolume = window.CURRENT_MUSIC.volume();
window.CURRENT_MUSIC.fade(currentVolume, 0, options.fade); window.CURRENT_MUSIC.fade(currentVolume, 0, options.fade*1000);
} }
// Play new song (if any) // Play new song (if any)

View File

@ -28,8 +28,10 @@ subscribe("START_GAME", function(){
$("#loading").style.display = "none"; $("#loading").style.display = "none";
Game.start(); Game.start();
SceneSetup.act1(); /*SceneSetup.act1();
Game.goto("act1i"); music('battle', {volume:0.5});
//Game.goto("intro"); hong({body:"phone1"});
Game.goto("act1g");*/
Game.goto("intro");
}); });

BIN
sounds/music/pokemon.mp3 Normal file

Binary file not shown.

BIN
sounds/sfx/act1_scream.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sounds/sfx/rustle.mp3 Normal file

Binary file not shown.

BIN
sounds/sfx/rustle2.mp3 Normal file

Binary file not shown.

BIN
sounds/ui/click.mp3 Normal file

Binary file not shown.

BIN
sounds/ui/hover.mp3 Normal file

Binary file not shown.

BIN
sounds/ui/show_choice.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.