example/moveplayer: remove playerid variable

This commit is contained in:
Kazhnuz 2019-04-29 21:21:07 +02:00
parent 1922a975e9
commit 6dbbdc46dd

View file

@ -4,7 +4,7 @@ local Player = Parent:extend()
function Player:new(world, x, y, id)
Player.super.new(self, world, "player", x, y, 16, 16, true)
self.playerid = id
end
function Player:update(dt)
@ -28,7 +28,6 @@ end
function Player:draw()
Player.super.draw(self)
love.graphics.print(self.playerid, self.x, self.y)
end
return Player