From 858df09143e95451a8116e36420e94b3fa4587f0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 23 Aug 2020 09:53:10 +0200 Subject: [PATCH] fix: show upper half of the cursor on characters Fix #43 --- sonic-radiance.love/scenes/battlesystem/actors/hero.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua index a261d0b..40c00d8 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua @@ -66,6 +66,12 @@ end function Hero:draw() 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() end