From 2e73c0a92ee814370dad8b5ca9d210fa095db6be Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 12 Apr 2023 01:17:00 -0500 Subject: [PATCH] sky changes --- toomgis.p8 | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/toomgis.p8 b/toomgis.p8 index e85d653..7e34621 100644 --- a/toomgis.p8 +++ b/toomgis.p8 @@ -197,7 +197,6 @@ end levels = { { - sky=7, mapy=1, bad_item_ratio=0.12, unit="CM", @@ -205,7 +204,6 @@ levels = { next=2, }, { - sky=2, mapy=5, bad_item_ratio=0.16, unit="M", @@ -213,7 +211,6 @@ levels = { next=3, }, { - sky=2, mapy=9, bad_item_ratio=0.18, unit="KM", @@ -251,7 +248,15 @@ end function level_draw() -- each level is 4tl/32px - cls(lvl.sky) + if px < 2000 then + cls(12) + elseif px < 4000 then + cls(140) + elseif px < 6000 then + cls(2) + else + cls(1) + end --- zoom should go from 16 to 1 w/ growth local zoom = 16 - (15 * -sin(#tbody / MAX_PIECES / 4)) local h=32 * zoom @@ -673,10 +678,10 @@ __gfx__ 00000000000000000000000000000000030000000000000000333300000000000000000000000000000000000000000000600000566666660000000000000000 00000000000000000000000000044000333000000099990033333830066666600044440000000000000007000000000006860000566666660000000000000000 000000000000000000000000004444000400000009aaaa903834333006655660044444400000eee0000076700000000008880000566666660000000000000000 -00000000000000000000000004cccc40333000000acaaca00334383006566560055555500000ece000007670000cc00008886660566666660000000000000000 -0000000000000000000000004cccccc4040033300aaaaaa00034330006666660044444400eeeeee0077776700006600006668880566666660000000000000000 -0000000000000000000000000ccc8cc0333034300aa55aa00004000006566560055555500ecce4e00757767000cccc0008888480566666660000000000000000 -0000000000000000707070700ccc8cc0040004000aa55aa00004000006566560044554400eeee4e0075777700666666008888480566666660000000000000000 +00000000000000000000000004dddd40333000000acaaca00334383006566560055555500000ece0000076700001100008886660566666660000000000000000 +0000000000000000000000004dddddd4040033300aaaaaa00034330006666660044444400eeeeee0077776700006600006668880566666660000000000000000 +0000000000000000000000000ddd8dd0333034300aa55aa00004000006566560055555500ecce4e0075776700011110008888480566666660000000000000000 +0000000000000000707070700ddd8dd0040004000aa55aa00004000006566560044554400eeee4e0075777700666666008888480566666660000000000000000 00000000bbbbbbbb7b7b7b7bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb0000000000000000 00000000666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666600000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000