diff --git a/examples/gameplay/moveplayer/actors/player.lua b/examples/gameplay/moveplayer/actors/player.lua index ac6df46..cffb741 100644 --- a/examples/gameplay/moveplayer/actors/player.lua +++ b/examples/gameplay/moveplayer/actors/player.lua @@ -7,7 +7,8 @@ function Player:new(world, x, y) end function Player:update(dt) - self.xsp, self.ysp = 0, 0 + self.xfrc, self.yfrc = 480*3, 480*3 + if self.keys["up"].isDown then self.ysp = -120 end