- love.graphics.rectangle('fill', self.position.x, self.position.y, self.width, self.height)
-
- -- add current position
- self:recordPosition()
+ love.graphics.rectangle(
+ 'fill',
+ self.position.x-self.width/2,
+ self.position.y-self.height/2,
+ self.width,
+ self.height
+ )