Compare commits

..

2 Commits

Author SHA1 Message Date
bd03f0ad5c
suppress next-pane sound on autoconfirm
if the sound was whooshier I'd keep it in the autoadvancing breathers,
but it's a computerized bloop and I can't make it whooshy, so now I
am distinctly recognizing autoconfirm so I can suppress it. yay
2024-02-18 12:38:52 -08:00
14e4f5f5ed
abbreviate "center" as "c"
saving a grand total of 24 compressed bytes. yaaaay
2024-02-18 12:35:20 -08:00

View File

@ -728,7 +728,7 @@ function zonk_mode:at(_, x, y)
frames=self.exf, frames=self.exf,
} }
end end
function zonk_mode:center(_, rows, cols) function zonk_mode:c(_, rows, cols)
local w,h = cols*self.spc_full, rows*self.lnh-1 local w,h = cols*self.spc_full, rows*self.lnh-1
self:at(_, 64-ceil(w/2), 64-ceil(h/2)) self:at(_, 64-ceil(w/2), 64-ceil(h/2))
end end
@ -835,6 +835,7 @@ function fadetbl(col, tbl, frac)
end end
function zonk_mode:update() function zonk_mode:update()
self.confirmed = self.confirmed or self.ac
if (not self.brth:matches(self.bwt)) self.alwaysmatched=false if (not self.brth:matches(self.bwt)) self.alwaysmatched=false
if self.playing_text then if self.playing_text then
self.twt -= 1 self.twt -= 1
@ -843,7 +844,7 @@ function zonk_mode:update()
if not item then if not item then
if (not self.file or #self.file == 0) self:next_file() if (not self.file or #self.file == 0) self:next_file()
self.playing_text=false self.playing_text=false
psound(8,8,2) if (not self.confirmed) psound(8,8,2)
else else
self.txt_frame:push(item) self.txt_frame:push(item)
self.twt = wt*self.cmul self.twt = wt*self.cmul
@ -864,7 +865,7 @@ function zonk_mode:update()
self.txt_frame.go = true self.txt_frame.go = true
self.fpfrm = self.exf self.fpfrm = self.exf
self.alwaysmatched=true self.alwaysmatched=true
psound(8, justc and 16 or 18, 8, true) if (not self.ac) psound(8, justc and 16 or 18, 8, true)
end end
if (justc and not self.nextpage) psound(8,16,2) if (justc and not self.nextpage) psound(8,16,2)
else else
@ -915,60 +916,60 @@ end
-->8 -->8
-- awakener -- awakener
count_up=[[bgdy:-0.1 bspd:240 center:3:18 count_up=[[bgdy:-0.1 bspd:240 c:3:18
>wITH EVERY COUNT >wITH EVERY COUNT
FROM 1 !UP TO 5, FROM 1 !UP TO 5,
YOU !WAKE FURTHER. YOU !WAKE FURTHER.
----- -----
bgdy:0 center:5:19 bgdy:0 c:5:19
>aS YOU !WAKE !UP, >aS YOU !WAKE !UP,
THE WORLD RETURNS. THE WORLD RETURNS.
YOUR MIND IS !NOW YOUR MIND IS !NOW
RETURNING TO ITS RETURNING TO ITS
USUAL FLOW. USUAL FLOW.
----- -----
bpal:1 set:bwt:2 center:3:19 bpal:1 set:bwt:2 c:3:19
!aWAKEN, BECOMING !aWAKEN, BECOMING
FULLY ALERT AT THE FULLY ALERT AT THE
>COUNT OF #5... >COUNT OF #5...
----- -----
set:exf:10 set:txf:30 set:txd:45 set:confirmed:1 bgdy:0.1 bspd:225 center:1:1 set:exf:10 set:txf:30 set:txd:45 set:ac:1 bgdy:0.1 bspd:225 c:1:1
1 1
----- -----
set:confirmed:1 bspd:210 bgdy:0.15 bgwt:10 center:1:1 set:ac:1 bspd:210 bgdy:0.15 bgwt:10 c:1:1
2 2
----- -----
set:confirmed:1 bspd:180 bgdy:0.2 bgwt:12 center:1:1 set:ac:1 bspd:180 bgdy:0.2 bgwt:12 c:1:1
3 3
----- -----
set:confirmed:1 bgdy:0.25 bpal:2 bgwt:14 center:1:1 set:ac:1 bgdy:0.25 bpal:2 bgwt:14 c:1:1
4 4
----- -----
set:confirmed:1 bgdy:0.4 bgwt:16 center:1:1 set:ac:1 bgdy:0.4 bgwt:16 c:1:1
5 5
----- -----
set:hide_breath:1 set:hide_stripes:1 boff set:txf:1 set:txd:0 set:exd:0 set:exf:1 set:bwt:0 center:1:11 set:hide_breath:1 set:hide_stripes:1 boff set:txf:1 set:txd:0 set:exd:0 set:exf:1 set:bwt:0 c:1:11
wide awake! wide awake!
]] ]]
function normal_awakener() function normal_awakener()
return zonk_mode.new{ return zonk_mode.new{
br_cols=brth_bg, br_cols=brth_bg,
file=[[center:2:15 bon file=[[c:2:15 bon
yOU'VE LEARNED yOU'VE LEARNED
SO WELL! SO WELL!
----- -----
center:2:14 c:2:14
yOU'RE SUCH A yOU'RE SUCH A
!GOOD !TOY! !GOOD !TOY!
----- -----
center:4:19 c:4:19
tAKE A MOMENT TO tAKE A MOMENT TO
JUST !ENJOY HOW JUST !ENJOY HOW
>IT FEELS, TO BE >IT FEELS, TO BE
#VINYL FULL OF #AIR. #VINYL FULL OF #AIR.
----- -----
center:6:20 bgdy:-0.2 c:6:20 bgdy:-0.2
bECAUSE, NEXT, IT'S bECAUSE, NEXT, IT'S
>TIME TO #WAKE #UP. >TIME TO #WAKE #UP.
yOU GET TO TAKE YOUR yOU GET TO TAKE YOUR
@ -976,7 +977,7 @@ yOU GET TO TAKE YOUR
!MEMORIES OF THIS !MEMORIES OF THIS
EXPERIENCE WITH YOU, EXPERIENCE WITH YOU,
----- -----
center:4:20 bgdy:-0.15 bspd:270 c:4:20 bgdy:-0.15 bspd:270
BUT !ALL THE HYPNOTIC BUT !ALL THE HYPNOTIC
!SUGGESTIONS FROM !SUGGESTIONS FROM
>THIS GAME WILL !FADE >THIS GAME WILL !FADE
@ -997,12 +998,12 @@ function fast_awakener()
p={ p={
[0]=0,128,133,5,4,5,6,7,133,134,6,140,132,12,7,7 [0]=0,128,133,5,4,5,6,7,133,134,6,140,132,12,7,7
}, },
file=[[center:3:13 file=[[c:3:13
tHIS HYPNOTIC tHIS HYPNOTIC
EXPERIENCE IS EXPERIENCE IS
ENDING !NOW. ENDING !NOW.
----- -----
center:6:20 c:6:20
>aS YOU #WAKE #UP, ALL >aS YOU #WAKE #UP, ALL
HYPNOTIC SUGGESTIONS HYPNOTIC SUGGESTIONS
FROM THIS GAME FADE. FROM THIS GAME FADE.
@ -1010,13 +1011,13 @@ FROM THIS GAME FADE.
!RETURNING !TO ITS !RETURNING !TO ITS
!ORDINARY PATTERNS. !ORDINARY PATTERNS.
----- -----
center:4:19 bon c:4:19 bon
tHE !STORY TOLD BY tHE !STORY TOLD BY
>THIS SOFTWARE !IS >THIS SOFTWARE !IS
ENDED, WORDS ON A ENDED, WORDS ON A
SCREEN IN THE !PAST. SCREEN IN THE !PAST.
----- -----
center:5:17 c:5:17
>sUGGESTIONS FROM >sUGGESTIONS FROM
>THIS FICTION ARE >THIS FICTION ARE
LEFT BEHIND. tHEY LEFT BEHIND. tHEY
@ -1785,10 +1786,10 @@ DRIFT,SOAR,IMAGINE,BE
RELAX,CHILL,TOY,POOLTOY RELAX,CHILL,TOY,POOLTOY
SINK,DEEP,TRANCE,FOLLOW]] SINK,DEEP,TRANCE,FOLLOW]]
basic_breathe=[[center:1:13 bon set:confirmed:true set:bwt:1 basic_breathe=[[c:1:13 bon set:ac:true set:bwt:1
bREATHE IN... bREATHE IN...
----- -----
center:1:14 set:confirmed:true set:bwt:2 c:1:14 set:ac:true set:bwt:2
bREATHE OUT...]] bREATHE OUT...]]
function sequencer:next() function sequencer:next()
@ -1819,7 +1820,7 @@ function create_game()
exf=30, exf=30,
cmul=0.25, cmul=0.25,
hide_stripes=true, hide_stripes=true,
file=[[center:6:20 file=[[c:6:20
wELCOME TO !vACATION! wELCOME TO !vACATION!
tHIS GAME USES #ONLY tHIS GAME USES #ONLY
@ -1827,7 +1828,7 @@ tHIS GAME USES #ONLY
GAMEPLAY, SO PRESS GAMEPLAY, SO PRESS
!RIGHT TO CONTINUE. !RIGHT TO CONTINUE.
----- -----
center:9:20 c:9:20
>vACATION IS A >vACATION IS A
#HYPNOTIC #EXPERIENCE. #HYPNOTIC #EXPERIENCE.
@ -1838,7 +1839,7 @@ FOR ANY REASON, HOLD
>THE GAME AND STARTS >THE GAME AND STARTS
AN AWAKENER. AN AWAKENER.
----- -----
center:10:20 c:10:20
>aT THE END OF THIS >aT THE END OF THIS
>GAME, THE HYPNOTIC >GAME, THE HYPNOTIC
SUGGESTIONS WILL END SUGGESTIONS WILL END
@ -1850,16 +1851,16 @@ FEEL FREE TO !SINK AS
!DEEP INTO TRANCE AS !DEEP INTO TRANCE AS
>YOU LIKE! >YOU LIKE!
----- -----
center:2:20 c:2:20
iN THIS GAME, YOU'RE iN THIS GAME, YOU'RE
AN #ORCA #POOLTOY. AN #ORCA #POOLTOY.
----- -----
center:3:16 c:3:16
>tHAT'S ALSO THE >tHAT'S ALSO THE
CHARACTER IN THE CHARACTER IN THE
ARCADE PART. ARCADE PART.
----- -----
center:10:20 c:10:20
lET'S TRY THE ARCADE lET'S TRY THE ARCADE
PART! #jUMP AND #DIVE PART! #jUMP AND #DIVE
>TO CATCH !THE WORDS. >TO CATCH !THE WORDS.
@ -1871,7 +1872,7 @@ THEY'RE JUST HERE TO
!SHAPE THE EXPERIENCE !SHAPE THE EXPERIENCE
FOR !YOU. FOR !YOU.
----- -----
center:2:10 c:2:10
UP: JUMP UP: JUMP
DOWN: !DIVE]], DOWN: !DIVE]],
}}, }},
@ -1890,17 +1891,17 @@ DOWN: !DIVE]],
txf=15, txf=15,
exf=30, exf=30,
br_spd = 240, br_spd = 240,
files={[[center:3:18 files={[[c:3:18
hEY, WELCOME BACK! hEY, WELCOME BACK!
>sTARTING TO GET >sTARTING TO GET
>THE HANG OF IT? >THE HANG OF IT?
----- -----
center:3:14 c:3:14
nOW, THIS GAME nOW, THIS GAME
PROMISED TO BE PROMISED TO BE
>#HYPNOTIC. >#HYPNOTIC.
----- -----
center:6:18 c:6:18
aND YOU MIGHT BE aND YOU MIGHT BE
!ZONING !OUT TO IT !ZONING !OUT TO IT
ALREADY! bUT THESE ALREADY! bUT THESE
@ -1908,7 +1909,7 @@ ALREADY! bUT THESE
MORE TRADITIONALLY MORE TRADITIONALLY
>!HYPNOTIC. >!HYPNOTIC.
----- -----
center:8:20 c:8:20
nOW, YOU MIGHT NOT nOW, YOU MIGHT NOT
THINK !HYPNOSIS !WORKS THINK !HYPNOSIS !WORKS
ON YOU. tHAT'S ALL ON YOU. tHAT'S ALL
@ -1918,7 +1919,7 @@ THINK !HYPNOSIS !WORKS
HAVE TO !FOLLOW THE HAVE TO !FOLLOW THE
TEXT TOO CLOSELY. TEXT TOO CLOSELY.
----- -----
center:9:20 c:9:20
>tHIS IS A #vACATION! >tHIS IS A #vACATION!
yOU DON'T HAVE TO DO yOU DON'T HAVE TO DO
>MUCH OF #ANYTHING. >MUCH OF #ANYTHING.
@ -1929,42 +1930,42 @@ yOU DON'T HAVE TO DO
>STAIRCASE AND COUNT >STAIRCASE AND COUNT
BACKWARDS. BACKWARDS.
----- -----
center:4:20 c:4:20
tHAT ALL SOUNDS LIKE tHAT ALL SOUNDS LIKE
TOO MUCH WORK. aLL TOO MUCH WORK. aLL
YOU NEED TO DO RIGHT YOU NEED TO DO RIGHT
!NOW IS TO #BREATHE. !NOW IS TO #BREATHE.
----- -----
center:1:13 bon bpal:1 set:confirmed:true set:bwt:1 set:txf:2 set:txd:0 set:exd:0 set:exf:10 c:1:13 bon bpal:1 set:ac:true set:bwt:1 set:txf:2 set:txd:0 set:exd:0 set:exf:10
bREATHE IN... bREATHE IN...
----- -----
center:1:14 set:confirmed:true set:bwt:2 bspd:270 c:1:14 set:ac:true set:bwt:2 bspd:270
bREATHE OUT... bREATHE OUT...
----- -----
center:1:13 bpal:1 set:confirmed:true set:bwt:1 c:1:13 bpal:1 set:ac:true set:bwt:1
bREATHE IN... bREATHE IN...
----- -----
center:1:14 set:confirmed:true set:bwt:2 bspd:300 c:1:14 set:ac:true set:bwt:2 bspd:300
bREATHE OUT...]], bREATHE OUT...]],
basic_breathe, basic_breathe,
[[set:bwt:0 bpal:2 unset:txd:txf:exf:exd center:4:19 [[set:bwt:0 bpal:2 unset:txd:txf:exf:exd c:4:19
gREAT! iT FEELS gREAT! iT FEELS
>NICE TO !SINK INTO >NICE TO !SINK INTO
RELAXATION SO RELAXATION SO
EASILY, DOESN'T IT? EASILY, DOESN'T IT?
----- -----
center:4:19 c:4:19
>iT HELPS YOUR MIND >iT HELPS YOUR MIND
>FLOAT AND !DRIFT, >FLOAT AND !DRIFT,
LIKE A #POOLTOY #ORCA LIKE A #POOLTOY #ORCA
ON THE WAVES... ON THE WAVES...
----- -----
center:3:18 c:3:18
iT'S A FUN IDEA TO iT'S A FUN IDEA TO
JUST BE A #TOY LIKE JUST BE A #TOY LIKE
>THAT, ISN'T IT? >THAT, ISN'T IT?
----- -----
center:7:20 c:7:20
!iMAGINE IT! #fLOATING !iMAGINE IT! #fLOATING
>FREE ON A WARM DAY, >FREE ON A WARM DAY,
!COOL WATER #SPLASHING !COOL WATER #SPLASHING
@ -1973,7 +1974,7 @@ YOUR AIR-FILLED BODY
>#BOBBING BUOYANTLY >#BOBBING BUOYANTLY
ON THE SURF... ON THE SURF...
----- -----
center:8:20 c:8:20
nOW, !YOUR !MIND CAN nOW, !YOUR !MIND CAN
>#DO #WHATEVER #FEELS >#DO #WHATEVER #FEELS
>#RIGHT -- IT !FOLLOWS >#RIGHT -- IT !FOLLOWS
@ -1983,13 +1984,13 @@ YOU, IDEAS !YOU WOULD
>ENJOY AND !WANT TO >ENJOY AND !WANT TO
>EXPERIENCE. >EXPERIENCE.
----- -----
center:4:19 c:4:19
aNYTHING ELSE CAN aNYTHING ELSE CAN
>JUST ROLL OFF YOUR >JUST ROLL OFF YOUR
MIND LIKE WATER OFF MIND LIKE WATER OFF
A POOLTOY'S BACK. A POOLTOY'S BACK.
----- -----
center:5:19 set:bwt:2 bpal:1 c:5:19 set:bwt:2 bpal:1
bUT WON'T IT BE FUN bUT WON'T IT BE FUN
TO #FEEL #THE #SEA TO #FEEL #THE #SEA
>#BENEATH #YOU AS YOU >#BENEATH #YOU AS YOU
@ -2007,12 +2008,12 @@ SURF OVER THE WAVES
{ {
f=zonk_mode.new, f=zonk_mode.new,
params={{files={ params={{files={
[[center:3:19 [[c:3:19
>dON'T THOSE LEVELS >dON'T THOSE LEVELS
>JUST #FLY BY WHEN >JUST #FLY BY WHEN
YOU'RE IN A #TRANCE? YOU'RE IN A #TRANCE?
----- -----
center:7:20 bpal:1 c:7:20 bpal:1
hAVE YOU YET NOTICED hAVE YOU YET NOTICED
HOW !DIFFERENT IT HOW !DIFFERENT IT
>FEELS !NOW, YOUR >FEELS !NOW, YOUR
@ -2021,19 +2022,19 @@ hAVE YOU YET NOTICED
YOUR MIND TO !GREATER YOUR MIND TO !GREATER
>DEPTHS OF #HYPNOSIS? >DEPTHS OF #HYPNOSIS?
----- -----
center:4:20 bpal:2 c:4:20 bpal:2
sTRANGE HOW !THAT sTRANGE HOW !THAT
!BODY !CAN !BE !SO !HEAVY !BODY !CAN !BE !SO !HEAVY
>WHILE YOU'RE SO >WHILE YOU'RE SO
>#LIGHT AND #FLOATY! >#LIGHT AND #FLOATY!
----- -----
center:4:20 c:4:20
oR PERHAPS !IT !CAN !BE oR PERHAPS !IT !CAN !BE
>VERY !FAMILIAR, IF >VERY !FAMILIAR, IF
YOU'VE EXPERIENCED YOU'VE EXPERIENCED
#HYPNOSIS BEFORE. #HYPNOSIS BEFORE.
----- -----
center:7:20 set:bwt:2 bpal:1 c:7:20 set:bwt:2 bpal:1
iT CAN BECOME VERY iT CAN BECOME VERY
FAMILIAR, !THAT SENSE FAMILIAR, !THAT SENSE
OF #FOCUS AND #QUIET OF #FOCUS AND #QUIET
@ -2043,7 +2044,7 @@ FAMILIAR, !THAT SENSE
WORDS IN !TRANCE.]], WORDS IN !TRANCE.]],
basic_breathe, basic_breathe,
basic_breathe, basic_breathe,
[[set:bwt:0 bpal:2 center:8:20 [[set:bwt:0 bpal:2 c:8:20
sO #RELAXED NOW, !THAT sO #RELAXED NOW, !THAT
!BODY BARELY WANTS TO !BODY BARELY WANTS TO
>MOVE, !DOESN'T IT? >MOVE, !DOESN'T IT?
@ -2053,7 +2054,7 @@ sO #RELAXED NOW, !THAT
>PAGE, EVERYTHING IS >PAGE, EVERYTHING IS
SO #CALM AND #HEAVY. SO #CALM AND #HEAVY.
----- -----
center:9:20 c:9:20
>iF YOU NEEDED TO, >iF YOU NEEDED TO,
>YOU COULD LOOK AWAY >YOU COULD LOOK AWAY
AND MOVE FREELY, BUT AND MOVE FREELY, BUT
@ -2064,7 +2065,7 @@ SCREEN, AREN'T THEY?
>#RIGHT #HERE WHEN YOU >#RIGHT #HERE WHEN YOU
TRY TO TURN AWAY. TRY TO TURN AWAY.
----- -----
center:6:20 c:6:20
bECAUSE EVERY WORD bECAUSE EVERY WORD
IS TAKING YOU !DEEPER IS TAKING YOU !DEEPER
INTO !TRANCE !NOW, INTO !TRANCE !NOW,
@ -2072,7 +2073,7 @@ IS TAKING YOU !DEEPER
>#HYPNOTIC #SAFETIES >#HYPNOTIC #SAFETIES
DEEP IN YOUR MIND. DEEP IN YOUR MIND.
----- -----
center:9:20 c:9:20
tHE !SUGGESTIONS IN tHE !SUGGESTIONS IN
>THIS GAME ARE #PLAY. >THIS GAME ARE #PLAY.
tHEY CAN !FEEL AS tHEY CAN !FEEL AS
@ -2084,7 +2085,7 @@ PLAY IS OVER AND THE
>!END AND YOUR MIND >!END AND YOUR MIND
WILL BE AS IT WAS. WILL BE AS IT WAS.
----- -----
center:9:20 c:9:20
>eVEN WHEN YOU ARE >eVEN WHEN YOU ARE
FULLY !ENGAGED IN FULLY !ENGAGED IN
THIS EXPERIENCE, A THIS EXPERIENCE, A
@ -2096,7 +2097,7 @@ SUGGESTIONS THAT ARE
>OTHERS #DRIFT PAST >OTHERS #DRIFT PAST
>WITH NO EFFECT. >WITH NO EFFECT.
----- -----
center:9:20 c:9:20
>iF YOU NEED OR WANT >iF YOU NEED OR WANT
>TO END THIS GAME AT >TO END THIS GAME AT
>ANY TIME, FOR ANY >ANY TIME, FOR ANY
@ -2107,7 +2108,7 @@ AWAKENER STARTS. aNY
>KEEPING YOU SAFE IS >KEEPING YOU SAFE IS
>INVITED TO DO THIS. >INVITED TO DO THIS.
----- -----
center:8:20 bpal:1 c:8:20 bpal:1
>bECAUSE ALL THESE >bECAUSE ALL THESE
SAFETIES ARE HERE, SAFETIES ARE HERE,
THE SUGGESTIONS IN THE SUGGESTIONS IN
@ -2117,7 +2118,7 @@ BALLOON ANIMAL UNTIL
IT'S THE !PERFECT IT'S THE !PERFECT
SHAPE FOR A !TOY! SHAPE FOR A !TOY!
----- -----
center:9:20 c:9:20
>a !PERFECT MATCH FOR >a !PERFECT MATCH FOR
THOSE !SMOOTH PUFFY THOSE !SMOOTH PUFFY
!VINYL #FLIPPERS NOW !VINYL #FLIPPERS NOW
@ -2128,7 +2129,7 @@ center:9:20
YOU STORIES WITH YOU STORIES WITH
#EVERY #SENSE NOW. #EVERY #SENSE NOW.
----- -----
center:9:20 c:9:20
>wHAT DOES IT !FEEL >wHAT DOES IT !FEEL
LIKE, TO WEAR THAT LIKE, TO WEAR THAT
!CETACEAN #SHAPE, SO !CETACEAN #SHAPE, SO
@ -2139,7 +2140,7 @@ TO HAVE INTERNAL #AIR
#PRESSURE RESISTING #PRESSURE RESISTING
MOVEMENTS? MOVEMENTS?
----- -----
center:7:19 c:7:19
>bECAUSE WHEN !YOUR >bECAUSE WHEN !YOUR
>PAINTED-ON EYES CAN >PAINTED-ON EYES CAN
?SEE YOUR INFLATABLE ?SEE YOUR INFLATABLE