From 2ed036efc0d3634e050b8607b6d34cb0f89001cb Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 11 Feb 2024 19:47:18 -0800 Subject: [PATCH] implement safeword --- vacation.p8 | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 061e5d1..26c4421 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -280,7 +280,9 @@ function _update60() if exit_dither and exit_dither:update() then exit_dither = nil awakener_hold_frames=0 - mainview = fast_awakener.new() + awakener_armed=false + mainview = fast_awakener() + mainview:activate() end mainview:update() end @@ -293,7 +295,6 @@ function _draw() rectfill(gpx+1,0,128,9,5) font_default() print("keep holding for awakener", 1, 1, 7) - font_special() end if exit_dither then exit_dither:draw() @@ -1040,6 +1041,63 @@ BUT !ALL THE HYPNOTIC } end +function fast_awakener() + seq=sequencer.new{ + {f=awakener_lock}, + } + return zonk_mode.new{ + br_speed=240, + br_cols=bg_breather, + bg_dy=-0.12, + p={ + [0]=0,128,133,5,4,5,6,7,133,134,6,140,132,12,7,7 + }, + file=[[center:3:13 +tHIS HYPNOTIC +EXPERIENCE IS + ENDING !NOW. +----- +center:6:20 +>aS YOU #WAKE #UP, ALL +HYPNOTIC SUGGESTIONS +FROM THIS GAME FADE. + yOUR MIND IS !NOW + !RETURNING !TO ITS + !ORDINARY PATTERNS. +----- +center:4:19 bon + tHE !STORY TOLD BY + >THIS SOFTWARE !IS + ENDED, WORDS ON A +SCREEN IN THE !PAST. +----- +center:5:17 +>sUGGESTIONS FROM +>THIS FICTION ARE +LEFT BEHIND. tHEY +DO NOT AFFECT YOU + OR YOUR MEMORY.]], + files={count_up}, + } +end + +function awakener_lock() + arm_awakener() + return { + update=nop, + activate=nop, + draw=function() + pal() + font_default() + cls(0) + print("session ended",38,7,5) + print("to replay awakener,",26,58,6) + print("hold ❎",45,65,6) + print("kistaro.itch.io",34,116,5) + end, + } +end + -->8 -- consent screens