Add more explicit control around save/load. This still seems to only work sporadically though.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user