Fix broken redraw code, implement player sprites (some) and get ready for interactable objects.
This commit is contained in:
parent
3a9fac53f0
commit
cdced463ed
5 changed files with 101 additions and 52 deletions
2
main.lua
2
main.lua
|
@ -32,7 +32,7 @@ function handle_map_update()
|
|||
-- we need to regenerate the map, so we generate a map chunk that
|
||||
-- places the player in the middle of it.
|
||||
generate_map(player_pos_x-32, player_pos_y-32)
|
||||
camera_pos_x, camera_pos_y = 24
|
||||
camera_pos_x, camera_pos_y = 24, 24
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue