added player angle line
This commit is contained in:
parent
ee79aad06e
commit
073b0aad44
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ function Player:draw()
|
|||
Player.super.draw(self)
|
||||
love.graphics.setColor(1, 0.4, 0.4)
|
||||
self.collider:draw()
|
||||
love.graphics.setColor(0.4, 1, 0.4)
|
||||
love.graphics.line(self.x, self.y, self.x + 2*self.w*math.cos(self.r), self.y + 2*self.w*math.sin(self.r))
|
||||
love.graphics.setColor(1, 1, 1)
|
||||
love.graphics.circle('line', self.x, self.y, self.w)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue