diff --git a/toomgis.p8 b/toomgis.p8 index 14993d6..e3e0204 100644 --- a/toomgis.p8 +++ b/toomgis.p8 @@ -4,6 +4,7 @@ __lua__ function _init() start_ampm() + --start_level(3) end function _draw() @@ -245,6 +246,23 @@ function reset_items() end end +function fancy_background() + local cx1 = 20 + local cx2 = 108 + local cy = 40 + + for a=0,120,10 do + line(0, a, 128, a, 11) + line(a, 0, a, 128, 11) + end + + for i=0,8 do + local x = 20*cos((i+t())/8) + local y = 30*sin((i+t())/8) + line(cx1+x, cy+y, cx2+x, cy-y, 9) + end +end + function level_draw() -- each level is 4tl/32px if px < 2000 then @@ -256,6 +274,7 @@ function level_draw() else cls(1) end + --fancy_background() --- zoom should go from 16 to 1 w/ growth local zoom = 16 - (15 * -sin(#tbody / MAX_PIECES / 4)) local h=32 * zoom @@ -463,6 +482,23 @@ function shadow_pal() end end +function tech_pal() + pal(0, 3) + pal(1, 3) + pal(2, 3) + pal(4, 3) + pal(5, 3) + pal(6, 11) + pal(7, 11) + pal(8, 3) + pal(9, 11) + pal(10, 11) + pal(12, 11) + pal(13, 3) + pal(14, 11) + pal(15, 11) +end + -- gameover function start_gameover() state = "gameover" @@ -548,10 +584,6 @@ function start_explainer() state = "explainer" scene_start = time() tbody = {} - -- for i=2, 14 do - -- add2body(i) - -- add2body(i) - -- end end function explainer_draw() @@ -570,14 +602,9 @@ function explainer_draw() toomgis_draw(50, 50) spr(33, 50, 60, 2, 2) - for n=0,14 do - end print("toomgis hates stinky food", 7, 120, 9) - print("❎ jump\n🅾️ shred\n⬅️ move ➡️", 5, 50) - print("\"too much good\n stuff\"", 70, 55) - end function explainer_upd()