fix: show upper half of the cursor on characters

Fix #43
This commit is contained in:
Kazhnuz 2020-08-23 09:53:10 +02:00
parent e6cf6b5761
commit 858df09143

View file

@ -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