Add more explicit control around save/load. This still seems to only work sporadically though.
This commit is contained in:
parent
06879ee1ad
commit
77f3d49ba9
5 changed files with 28 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
-- draw_player() # call in _draw(). Draws the player sprite.
|
||||
|
||||
function init_player()
|
||||
player_x, player_y = dget(0), dget(1)
|
||||
player_x, player_y = 0, 0
|
||||
|
||||
facing_v = 1
|
||||
facing_h = 0
|
||||
|
@ -76,8 +76,6 @@ function handle_input()
|
|||
-- note that facing always changes, even if we can't move to the new location
|
||||
if legal_move(new_x, new_y) then
|
||||
player_x, player_y = new_x, new_y
|
||||
dset(0, player_x)
|
||||
dset(1, player_y)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue