From 771c057aaaad61bb2e2ae2403922167e8e572251 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 12 Apr 2023 01:29:49 -0500 Subject: [PATCH] 0.9 --- toomgis.p8 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/toomgis.p8 b/toomgis.p8 index 7e34621..14993d6 100644 --- a/toomgis.p8 +++ b/toomgis.p8 @@ -143,7 +143,6 @@ function hitbody() ejected += 1 end end - printh("#tbody=".. #tbody .." ejected "..ejected) end function toomgis_draw(x, y) @@ -241,7 +240,7 @@ end function reset_items() items = {} - for i=0,10 do + for i=0,5 do add(items, {x=0, y=0, n=0}) end end @@ -262,7 +261,7 @@ function level_draw() local h=32 * zoom for y=0,h do tline(0, 128-h+y, 128, 128-h+y, -- screen coordinates (entire screen scanlines) - px/80, lvl.mapy+y/(8*zoom), 1/(8*zoom), 0) + px/100, lvl.mapy+y/(8*zoom), 1/(8*zoom), 0) -- don't scale x start with zoom, since position is not dependent end @@ -322,8 +321,6 @@ end function streak2mult() if streak > 20 then - return 5 - elseif streak > 10 then return 3 elseif streak > 5 then return 2 @@ -390,6 +387,7 @@ function level_upd() end if btnp(⬆️) then + -- DEBUG start_level(lvl.next) end @@ -412,7 +410,6 @@ function level_upd() end local d = dist(20+8, 96-py+8, item.x+4-px, item.y+4) - --printh(item.n.." "..(item.x+4-px)..","..(item.y+4).." d="..d) if d < toomgis_radius() and item.n != 0 then -- item collision if item.n > 16 then