Clean up a few functions and get ready for new features.

This commit is contained in:
2019-12-09 16:12:48 -05:00
parent 15c76c3884
commit 753700c144
4 changed files with 52 additions and 30 deletions

View File

@ -88,6 +88,15 @@ end
function draw_player()
spr(player_lookup[facing[1]][facing[2]], 64, 64)
-- todo: animate the character on move
-- draw the player's HUD
if fget(mget(player_pos[1], player_pos[2]), 1) then
-- flag 1 represents an interactable (read: destructible) sprite.
-- need a map of destructible map objects, appropriate sfx, replacement
-- sprites.
end
-- todo: introduce the concept of an inventory here
end
-- pos is camera position, meaning the map-relative player