Add more stuff to debug information.

This commit is contained in:
Anna Rose 2019-12-05 22:03:05 -05:00
parent 546de63412
commit d9714fb284

View File

@ -16,14 +16,19 @@ function _draw()
-- the screen is 128x128 pixels, so we can only draw 16x16 sprites -- the screen is 128x128 pixels, so we can only draw 16x16 sprites
map(camera_pos[1], camera_pos[2], 0, 0, 16, 16) map(camera_pos[1], camera_pos[2], 0, 0, 16, 16)
draw_player() draw_player()
debug_me_baby() if debug then
render_debug_info()
end
end end
function debug_me_baby() function render_debug_info()
if debug then clip(0, 0, 32, 32)
clip(0, 0, 32, 8) rectfill(0, 0, 32, 32, 0)
rectfill(0, 0, 32, 8, 0)
print(stat(0), 0, 0, 15) print(stat(0), 0, 0, 15)
print(camera_pos[1], 0, 8, 15)
print(camera_pos[2], 16, 8, 15)
print(facing[1], 0, 16, 15)
print(facing[2], 16, 16, 15)
print(player_lookup[facing], 0, 24, 15)
clip() clip()
end end
end