SHUT UP IT'S DONE
17
index.html
|
@ -50,7 +50,12 @@
|
|||
<div id="click_to_advance">
|
||||
<span id="cta_text1">
|
||||
<div class="mini-icon" pic="click" style="top:3px;"></div>
|
||||
click anywhere
|
||||
<span id="instructions_if_not_mobile">
|
||||
click or spacebar
|
||||
</span>
|
||||
<span id="instructions_if_mobile" style="display:none">
|
||||
tap anywhere
|
||||
</span>
|
||||
</span>
|
||||
<span id="cta_text2">
|
||||
<div class="mini-icon" pic="next"></div>
|
||||
|
@ -194,12 +199,12 @@ Created by
|
|||
<a href="https://ncase.me/" target="_blank">Nicky Case</a>
|
||||
<br>
|
||||
Music by
|
||||
<a href="https://loyaltyfreakmusic.com" target="_blank">Monplaisir</a> <!-- double check this is what they want -->
|
||||
<a href="https://loyaltyfreakmusic.com" target="_blank">Monplaisir</a>
|
||||
<br>
|
||||
Extra code by
|
||||
<a href="TODO LINK" target="_blank">Spacie</a>
|
||||
<a href="https://spacie.me/" target="_blank">Spacie</a>
|
||||
<br>
|
||||
<a href="https://github.com/ncase/anxiety#full-credits" target="_blank">Full credits</a> <!-- link to credits -->
|
||||
<a href="https://github.com/ncase/anxiety#full-credits" target="_blank">Full credits</a>
|
||||
<br><br>
|
||||
No fan-made translations yet!
|
||||
<br>
|
||||
|
@ -233,10 +238,10 @@ Share on an anxiety-app:
|
|||
</div>
|
||||
|
||||
<div class="corner-text" id="bottomright">
|
||||
<a href="https://ncase.me/mental-health-resources" target="_blank">Mental Health Resources</a>
|
||||
<a href="https://ncase.me/mental-health-resources" target="_blank">Mental Health Tips & Resources</a>
|
||||
<span class="hide-if-cuss-free">
|
||||
<br><br>
|
||||
<a href="?c=1" target="_blank">Cuss-Free Mode</a><br>
|
||||
<a href="?c=1">Cuss-Free Mode</a><br>
|
||||
(for educators who want to avoid an awkward PTA meeting)
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -233,7 +233,7 @@ b: Don't you know loneliness is associated with premature death as much as smoki
|
|||
|
||||
`bb({mouth:"normal", eyes:"normal_right"})`
|
||||
|
||||
b: (Holt-Lunstad et al, 2010, PLoS Medicine)
|
||||
b: (Holt-Lunstad 2010, PLoS Medicine)
|
||||
|
||||
`hong({eyes:"0_annoyed"})`
|
||||
|
||||
|
|
|
@ -358,7 +358,7 @@ b: At the end of it all, what can we possibly do that really matters?
|
|||
|
||||
`bb({body:"normal", eyes:"sad"})`
|
||||
|
||||
b: Contribute to humanity? All great works fade away the way of Ozymandias. Love? Death will always do that part.
|
||||
b: Contribute to humanity? All great works decay the way of Ozymandias. Love? Death will always do it part.
|
||||
|
||||
`bb({eyes:"sad_r"})`
|
||||
|
||||
|
@ -370,7 +370,7 @@ b: Heck, the Second Law of Thermodynamics means even our *universe* will die!
|
|||
|
||||
`bb({eyes:"suspect", body:"normal"})`
|
||||
|
||||
b: Oh, "death makes us appreciate life"? That's like saying we need to keep slaves to appreciate freedom!
|
||||
b: Oh, "death makes us appreciate life"? That's like saying slavery is good because it makes us appreciate freedom!
|
||||
|
||||
`bb({body:"one_up"})`
|
||||
|
||||
|
@ -957,7 +957,7 @@ b: Results: if you already had low self-esteem, being asked to repeat affirmatio
|
|||
|
||||
`bb({body:"point", mouth:"normal", eyes:"closed"})`
|
||||
|
||||
b: Wood et al, 2009, Psychological Science. Look it up on Google Scholar, human,
|
||||
b: Wood 2009, Psychological Science. Look it up on Google Scholar, human,
|
||||
|
||||
`bb({body:"scream_b_1"})`
|
||||
|
||||
|
|
|
@ -331,6 +331,16 @@ bb({ eyes:"sad" });
|
|||
# act3_fork
|
||||
|
||||
```
|
||||
Game.clearText();
|
||||
bb({body:"special_attack"});
|
||||
sfx("charging");
|
||||
Game.FORCE_CANT_SKIP = true;
|
||||
```
|
||||
|
||||
(...1001)
|
||||
|
||||
```
|
||||
Game.FORCE_CANT_SKIP = false;
|
||||
hong({body:"drink"});
|
||||
bb({body:"attacked"});
|
||||
attackBB("32p");
|
||||
|
@ -344,7 +354,7 @@ hong({ body:"normal" });
|
|||
bb({ body:"normal_"+_.act3_bb_body, mouth:"normal", eyes:"normal" });
|
||||
```
|
||||
|
||||
h: You already tried that too.
|
||||
h: You tried that too.
|
||||
|
||||
b: human, please...
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ _.PLAYED_BEFORE = !!window.localStorage.continueChapter;
|
|||
{{/if}}
|
||||
|
||||
{{if !_.PLAYED_BEFORE}}
|
||||
[PLAY!](#intro-start) `publish("intro-to-game-1"); Game.OVERRIDE_CHOICE_LINE=true;`
|
||||
[#play1# PLAY! #play2#](#intro-start) `publish("intro-to-game-1"); Game.OVERRIDE_CHOICE_LINE=true;`
|
||||
{{/if}}
|
||||
|
||||
{{if _.PLAYED_BEFORE && window.localStorage.continueChapter=="act2"}}
|
||||
|
@ -35,7 +35,7 @@ _.PLAYED_BEFORE = !!window.localStorage.continueChapter;
|
|||
{{/if}}
|
||||
|
||||
{{if _.PLAYED_BEFORE && window.localStorage.continueChapter=="replay"}}
|
||||
[REPLAY!](#intro-start) `publish("intro-to-game-1"); Game.OVERRIDE_CHOICE_LINE=true;`
|
||||
[#play1# REPLAY! #play2#](#intro-start) `publish("intro-to-game-1"); Game.OVERRIDE_CHOICE_LINE=true;`
|
||||
{{/if}}
|
||||
|
||||
{{if _.PLAYED_BEFORE}}
|
||||
|
@ -100,7 +100,7 @@ n3: So before we start, how would *you* like to read?
|
|||
|
||||
# intro-start-2
|
||||
|
||||
n3: Great! Note: you can always change text/audio options with the ⚙ icon below.
|
||||
n3: Great! Note: you can always change options with the ⚙ icon below. Also, game auto-saves at each chapter!
|
||||
|
||||
n3: Now, let's begin our story...
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ function Act3_Beebee(){
|
|||
"eyes_ignore_oh_crap",
|
||||
"body_attacked*",
|
||||
"body_dead*",
|
||||
"body_special_attack*",
|
||||
//"eyes_blank", // BLANK
|
||||
//"mouth_blank", // BLANK
|
||||
|
||||
|
|
|
@ -749,6 +749,10 @@ Game.executeChoice = function(line){
|
|||
preChoiceCodeIfAny = line.match(/\`(.*)\`/)[0]; // 0, with backticks
|
||||
}
|
||||
|
||||
// SUPER HACK: #play1# and #play2#
|
||||
choiceText = choiceText.replace("#play1#", "<div class='mini-icon' pic='play1'></div>");
|
||||
choiceText = choiceText.replace("#play2#", "<div class='mini-icon' pic='play2'></div>");
|
||||
|
||||
// Choice text, add italics where *word word words*
|
||||
var originalChoiceText = choiceText;
|
||||
var italicsRegex = /\*([^\*]*)\*/g;
|
||||
|
@ -822,27 +826,32 @@ Game.executeChoice = function(line){
|
|||
// If it's too big, shrink font size
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "18px";
|
||||
if(choiceHeight>40) div.style.fontSize = "18px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "16px";
|
||||
if(choiceHeight>40) div.style.fontSize = "17px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "15px";
|
||||
if(choiceHeight>40) div.style.fontSize = "16px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "14px";
|
||||
if(choiceHeight>40) div.style.fontSize = "15px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "13px";
|
||||
if(choiceHeight>40) div.style.fontSize = "14px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "12px";
|
||||
if(choiceHeight>40) div.style.fontSize = "13px";
|
||||
// And if still too much???
|
||||
setTimeout(function(){
|
||||
var choiceHeight = div.getBoundingClientRect().height;
|
||||
if(choiceHeight>40) div.style.fontSize = "12px";
|
||||
},1);
|
||||
},1);
|
||||
},1);
|
||||
},1);
|
||||
|
@ -1090,4 +1099,24 @@ window.addEventListener("keydown", function(e){
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
if(e.keyCode==32){ // SPACE TO ADVANCE
|
||||
_unpauseOrSkip();
|
||||
}
|
||||
});
|
||||
|
||||
// CUSSING
|
||||
var queryParams = {};
|
||||
if(window.location.search){
|
||||
window.location.search.substr(1).split("&").forEach(function(item){
|
||||
var split = item.split("=");
|
||||
queryParams[split[0]] = split[1];
|
||||
});
|
||||
}
|
||||
if(queryParams.c){
|
||||
window.NO_CUSS_MODE = true;
|
||||
}else{
|
||||
var doCuss = document.createElement("style");
|
||||
doCuss.innerHTML = ".hide-if-cuss-free{ display:inline; }";
|
||||
document.body.appendChild(doCuss);
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ window.voice = function(name, options){
|
|||
var delta = now - window._lastPlayedVoice[name];
|
||||
|
||||
// If too soon, DON'T PLAY.
|
||||
if(delta < 5/60*1000) return; // 5 frames
|
||||
if(delta < 8/60*1000) return; // 8 frames
|
||||
|
||||
// Otherwise, play
|
||||
options = options || {};
|
||||
|
|
|
@ -12,4 +12,12 @@ function flushElementTransitions(element){
|
|||
element.classList.add('clear_transition')
|
||||
element.clientHeight;
|
||||
element.classList.remove('clear_transition');
|
||||
}
|
||||
|
||||
// Is On Mobile?
|
||||
window.IS_ON_MOBILE = false;
|
||||
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
||||
window.IS_ON_MOBILE = true;
|
||||
$("#instructions_if_not_mobile").style.display = "none";
|
||||
$("#instructions_if_mobile").style.display = "inline";
|
||||
}
|
BIN
sounds/voices/beebee_long.mp3
Normal file
Before Width: | Height: | Size: 365 KiB After Width: | Height: | Size: 365 KiB |
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 241 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 522 KiB After Width: | Height: | Size: 1.3 MiB |
|
@ -7,9 +7,10 @@
|
|||
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
/*height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
place-items: center;*/
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin:0;
|
||||
background: #111;
|
||||
|
@ -61,11 +62,23 @@ MAIN GAME
|
|||
}
|
||||
|
||||
#game_container{
|
||||
|
||||
/*
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 360px;
|
||||
height: 600px;
|
||||
background: #000;
|
||||
overflow: hidden;*/
|
||||
|
||||
position: absolute;
|
||||
top:0; left:0; bottom:0; right:0;
|
||||
margin: auto;
|
||||
|
||||
width: 360px;
|
||||
height: 600px;
|
||||
background: #000;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
@ -1055,3 +1068,8 @@ CORNER TEXT
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.hide-if-cuss-free{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|