Skip to content
Snippets Groups Projects
Commit 8225dd46 authored by DarkGod's avatar DarkGod
Browse files

and it pulses

parent f2aa74be
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ newEffect{
add_mos = {{image = "npc/giant_treant_wrathroot.png",
display_y = -1,
display_h = 2}},
}
}
self:removeAllMOs()
game.level.map:updateMap(self.x, self.y)
......
......@@ -75,14 +75,15 @@ end
function _M:drawFrame(x, y, r, g, b, a)
-- Draw the glow
do
if a >= 1 then
local a = (1 + math.sin(core.game.getTime() / 500)) / 2
local x = x + self.frame.ox1
local y = y + self.frame.oy1
local mw = math.floor(self.frame.w / 2)
local blhw = math.floor(self.blight.w / 2)
local blhh = math.floor(self.blight.h / 2)
local b8hh = math.floor(self.b8.h / 2)
self.blight.t:toScreenFull(x + mw - blhw, y - blhh + b8hh, self.blight.w, self.blight.h, self.blight.tw, self.blight.th, r, g, b, a)
self.blight.t:toScreenFull(x + mw - blhw, y - blhh + b8hh, self.blight.w, self.blight.h, self.blight.tw, self.blight.th, r, g, b, 0.5 + 0.5 * a)
end
Dialog.drawFrame(self, x, y, r, g, b, a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment