summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-18 16:54:14 +0200
committerAki <nthirtyone@gmail.com>2017-07-18 16:54:14 +0200
commit9b75ea38f0194dfffc89c0144c1ab0efb8b4f392 (patch)
tree972831d9f2c5727eb56fd82afb4dc5f3bc3c951c /not
parentc55bf67aa348c7f16e5fccf2f2153bc90910934c (diff)
downloadroflnauts-9b75ea38f0194dfffc89c0144c1ab0efb8b4f392.zip
roflnauts-9b75ea38f0194dfffc89c0144c1ab0efb8b4f392.tar.gz
roflnauts-9b75ea38f0194dfffc89c0144c1ab0efb8b4f392.tar.bz2
Resized 16px effects frames to 24px
Diffstat (limited to 'not')
-rw-r--r--not/Hero.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 1c15588..13ab3dd 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -200,10 +200,7 @@ end
-- Spawn `Effect` relative to `Hero`
function Hero:createEffect (name, dx, dy)
- local x, y = self.body:getX()-8, self.body:getY()-8 -- 16px effect: -7 -7
- if not (name == "trail") and not (name == "hit") then
- x, y = x-4, y-7 -- 24px effect: -12 -15
- end
+ local x, y = self.body:getX()-12, self.body:getY()-15
if dx then
x = x + dx
end