parent
e6cf6b5761
commit
858df09143
1 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,12 @@ end
|
||||||
|
|
||||||
function Hero:draw()
|
function Hero:draw()
|
||||||
self:drawSprite(0, -self.z)
|
self:drawSprite(0, -self.z)
|
||||||
|
|
||||||
|
if (self.isSelected) then
|
||||||
|
local x, y = self.world.map:gridToPixel(self.x, self.y, true)
|
||||||
|
self.assets.images["cursorpeak"]:draw(x - 7, y - 24 - 32)
|
||||||
|
end
|
||||||
|
|
||||||
self:drawDamageNumber()
|
self:drawDamageNumber()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue