diff --git a/main.lua b/main.lua index 8616ed4..71a5df9 100644 --- a/main.lua +++ b/main.lua @@ -1,4 +1,6 @@ function _init() + cartdata("annabunches_a_pleasant_stroll_e25d3e5c") + init_sound"" init_world"" init_player"" diff --git a/player.lua b/player.lua index 920e6f8..397d008 100644 --- a/player.lua +++ b/player.lua @@ -14,7 +14,7 @@ -- draw_player() # call in _draw(). Draws the player sprite. function init_player() - player_x, player_y = 0, 0 + player_x, player_y = dget(0), dget(1) facing_v = 1 facing_h = 0 @@ -76,6 +76,8 @@ 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