From 52c5c8bb0fab9975c373fbd1b68c64ab909bc3fe Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 29 Apr 2023 22:30:59 -0500 Subject: [PATCH] final jerry --- games/baggage.p8 | 49 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/games/baggage.p8 b/games/baggage.p8 index 6df9e26..93229af 100644 --- a/games/baggage.p8 +++ b/games/baggage.p8 @@ -41,7 +41,7 @@ function draw_title() end function update_title() - if scene_time() > 1 then + if scene_time() > 6 then start_scene("menu") end end @@ -75,6 +75,10 @@ function draw_bag(bag, open, x, y) spr(n, x, y+8*(3-h), 2, h) end +function jerry_say(text) + print(text, 40, 92, 7) +end + function draw_menu() cls(1) @@ -82,25 +86,54 @@ function draw_menu() palt(11, true) rectfill(0, 90, 128, 128, 2) - draw_jerry(5, 96, (t())%6, "talking") + draw_jerry(5, 96, t()%6, "talking") - draw_bag(1, false, 20, 20) - draw_bag(2, false, 60, 20) - draw_bag(3, false, 100, 20) + local tx = 30 + local ty = 62 + local b1 = 9 + local b2 = 12 + local b3 = 15 + + if scene_time() > b1 then + rectfill(0, 60, 128, 90, 0) + end + if scene_time() > b3 then + print("i can only climax\nif my pet\norangutan 'pebbles'\nis watching", tx, ty, 7) + draw_spotlight(3) + elseif scene_time() > b2 then + print("i have lube hidden\nin every room in my\nhouse", tx, ty, 7) + draw_spotlight(2) + elseif scene_time() > b1 then + print("i wet the bed", tx, ty, 7) + draw_spotlight(1) + end + draw_bag(1, scene_time() > b1, 20, 20) + draw_bag(2, scene_time() > b2, 60, 20) + draw_bag(3, scene_time() > b3, 100, 20) + local text = "welcome to baggage,\nthe game show where\ndaters reveal their\nsmall, medium,\nand large baggage\nfor a shot at love" + jerry_say(sub(text, 1, letters)) +end + +function draw_spotlight(position) + fillp(0b10101111101011111010.1) + local x = 18 + 40*(position-1) + rectfill(x, 0, x+20, 60, 10) + fillp() end function update_menu() + letters += 0.4 end -- globals _scenes.title = {start=nil, draw=draw_title, update=update_title} -_scenes.menu = {start=nil, draw=draw_menu, update=nil} - +_scenes.menu = {start=nil, draw=draw_menu, update=update_menu} +letters = 1 __gfx__ 00000000bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb888888bb888888bb88888bbb88888bbb88888bbbbbbbbbbbbbbb66666666bbbbbbbbb666666bbbbbbbbbbbbb 00000000bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb888888bb877778bb88888bbb87778bbb80008bbbbbbbbbbbbb555555555555bbbbbb66bbbb66bbbbbbbbbbbb -00700700bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb888888bbbbbbbbbb88888bbb80008bbbbbbbbbbbbb500000000005bbbb555055550555bbbbbbbbbb +00700700bbbbbbbbbbb66666666bbbbbbbbbbbbbbbbbbbbb888888bbbbbbbbbb88888bbb80008bbbbbbbbbbbbb500000000005bbbb555055550555bbbbbbbbbb 00077000bbbbbbbbb6666666666666bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb88888bbbbbbbbbbbbb500000000005bbbb555555555555bbbbbbbbbb 00077000bbbbbbbbb66666666666666bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb500000000005bbbb555555555555bbbbbbbbbb 00700700bbbbbbbb66666666fffff666bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb500000000005bbbb555555555555bbbbbbbbbb