Clean up a few functions and get ready for new features.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user