example/moveplayer: remove playerid variable
This commit is contained in:
parent
1922a975e9
commit
6dbbdc46dd
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue