diff --git a/TODOS b/TODOS index 09b1b44..53bf1b7 100644 --- a/TODOS +++ b/TODOS @@ -2,3 +2,7 @@ - Why's there a long pause between scene transitions? - black out, then show END SCREEN (for newsletter, patreon, in meantime my other games) + +- icons in the start + +- if can contain code with { } regex \ No newline at end of file diff --git a/scenes/act1.md b/scenes/act1.md index 462c3dd..47862aa 100644 --- a/scenes/act1.md +++ b/scenes/act1.md @@ -14,10 +14,14 @@ h: Oh good, I was hoping to *not* eat in peace today. n: YOUR JOB IS TO PROTECT YOUR HUMAN FROM *DANGER* +`bb({eyes:"look", mouth:"small_lock"})` + n: IN FACT, THAT SANDWICH IS PUTTING THEM IN *DANGER* RIGHT NOW n: QUICK, WARN THEM! +`bb({eyes:"normal", mouth:"normal"})` + [You're eating alone for lunch! Again!](#act1a_alone) [You're not studying while eating!](#act1a_study) @@ -96,7 +100,7 @@ b: DIEEEEEEEEEEEEEEEEEEE ``` bb({body:"normal", mouth:"normal", eyes:"normal"}); hong({mouth:"0_shock", eyes:"0_shock"}); -attack("20p", "alone"); +attack("20p", "bad"); publish("hp_show"); ``` @@ -128,7 +132,7 @@ b: DIEEEEEEEEEEEEEEEEEEE ``` bb({body:"normal", mouth:"normal", eyes:"normal"}); hong({mouth:"0_shock", eyes:"0_shock"}); -attack("20p", "alone"); +attack("20p", "harm"); publish("hp_show"); ``` @@ -152,13 +156,22 @@ n: BUT YOU'RE NOT DONE SAVING YOUR HUMAN YET n: GET YOUR HUMAN'S ENERGY BAR TO ZERO -n: YOUR MOVES ARE: FEAR OF *BEING HARMED,* *BEING UNLOVED,* AND *BEING A BAD PERSON* +n: YOUR MOVES ARE: + +n: FEAR OF *BEING HARMED* #harm# + +n: FEAR OF *BEING UNLOVED* #alone# + +n: AND FEAR OF *BEING A BAD PERSON* #bad# n: (PRO TIP: TRY PLAYING THE CHOICES THAT MOST HIT YOUR DEEPEST, DARKEST FEARS!) h: ... -`hong({body:"putaway"})` +``` +hong({body:"putaway"}); +Game.OVERRIDE_TEXT_SPEED = 2.0; +``` h: you know what maybe it's time to check my phone. @@ -1060,7 +1073,7 @@ h: i just want to be free from all this... pain. `bb({eyes:"look_sad"});` -b: Hey... Human... +b: Hey... human... `Game.OVERRIDE_TEXT_SPEED = 0.5;` @@ -1238,10 +1251,7 @@ attack("30p", "bad"); # act1i -``` -hong({body:"3_defeated1"}); -bb({mouth:"smile_lock", eyes:"smile"}); -``` +`bb({mouth:"smile_lock", eyes:"smile"});` n: CONGRATULATIONS diff --git a/scripts/act1/Act1_Beebee.js b/scripts/act1/Act1_Beebee.js index e9e78e2..749fd89 100644 --- a/scripts/act1/Act1_Beebee.js +++ b/scripts/act1/Act1_Beebee.js @@ -33,6 +33,7 @@ function Act1_Beebee(){ "mouth_normal_talk", "mouth_small", "mouth_small_talk", + "mouth_small_lock", "eyes_normal", "eyes_normal_right", diff --git a/scripts/game/Game.js b/scripts/game/Game.js index d386cd0..9810492 100644 --- a/scripts/game/Game.js +++ b/scripts/game/Game.js @@ -411,13 +411,30 @@ Game.executeText = function(line){ // Larger interval if punctuation... var chr = word.slice(-1); + var isIcon = (word[0]=="#" && chr=="#"); if(chr=="*") chr = word[word.length-2]; // coz emphasis if(chr=="," || chr==":") interval += SPEED*5; if(chr=="." || chr=="?" || chr=="!") interval += SPEED*10; if(word.slice(-3)=="...") interval += SPEED*15; - } + // Oh, was it an ICON? + if(word[0]=="#" && chr=="#"){ + interval += SPEED*10; + var span = div.children[i]; + span.innerHTML = ""; + span.style.display = "block"; + var iconName = word.slice(1,-1) + var icon = Library.images["fear_"+iconName]; + div.children[i].appendChild(icon); + icon.style.display = "block"; + icon.style.margin = "0 auto"; + icon.style.width = "80px"; + icon.style.height = "80px"; + + } + + } } diff --git a/scripts/main.js b/scripts/main.js index 3103738..32e43be 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -10,16 +10,16 @@ Loader.load().then(function(){ Game.start(); // Set up... - SceneSetup.act1(); + /*SceneSetup.act1(); publish("hp_show"); hong({body:"phone1", mouth:"neutral", eyes:"neutral"}); //_.whitebread = true; _.partyinvite="ignore"; _.fifteencigs = true; //_.subtweet=true; - _.seppuku = true; + _.seppuku = true;*/ // GO! - Game.goto("act1g"); + Game.goto("act1"); }); \ No newline at end of file diff --git a/sprites/act1/act1_beebee.png b/sprites/act1/act1_beebee.png index 877ec22..0de5808 100644 Binary files a/sprites/act1/act1_beebee.png and b/sprites/act1/act1_beebee.png differ