Lots of code cleanup. Start implementing mod buffer culling.

This commit is contained in:
Anna Rose Wiggins 2019-12-11 01:34:46 -05:00
parent 16bcbc8e00
commit 1e9c456f78
4 changed files with 56 additions and 81 deletions

View file

@ -40,7 +40,7 @@ function debug_print()
end
function debug_print_res()
clip(70, 0, 16, 24)
clip(70, 0, 32, 24)
print(stat(0), 70, 0, 15)
print(stat(1), 70, 8, 15)
print(stat(9) .. " / " .. stat(8), 70, 16, 15)
@ -54,15 +54,15 @@ function debug_print_sfx()
end
function debug_print_map()
clip(24, 0, 32, 24)
print(camera_pos_x .. " " .. camera_pos_y, 24, 0, 15)
print(player_pos_x .. " " .. player_pos_y, 24, 8, 15)
print(get_biome_name(player_pos_x, player_pos_y), 24, 16, 15)
clip(24, 0, 32, 16)
print(player_x .. " " .. player_y, 24, 0, 15)
print(get_biome_name(player_x, player_y), 24, 8, 15)
clip()
end
function debug_print_mod_buffer()
clip(0, 0, 16, 128)
rectfill(0,0,16,128,0)
for k,v in pairs(mod_buffer) do
print(k .. ": " .. tostr(v))
end