From f6c53fd1a311c3912beb01479b00be8cf653b238 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 21:02:33 +0200 Subject: [PATCH] improvement: better shadow drawing --- sonic-radiance.love/game/modules/world/actors/parent.lua | 2 +- sonic-radiance.love/game/modules/world/actors/player.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sonic-radiance.love/game/modules/world/actors/parent.lua b/sonic-radiance.love/game/modules/world/actors/parent.lua index c546988..05c9e09 100644 --- a/sonic-radiance.love/game/modules/world/actors/parent.lua +++ b/sonic-radiance.love/game/modules/world/actors/parent.lua @@ -12,7 +12,7 @@ function Parent:draw() end function Parent:drawShadow(x, y) - self.assets.images["shadow"]:draw(x-4, y+8) + self.assets.images["shadow"]:draw(x-4, y+4) end return Parent diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index 5bc4d66..db408f1 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -3,10 +3,10 @@ local Parent = require(cwd .. "parent") local Player = Parent:extend() function Player:new(world, x, y, z, id) - Player.super.new(self, world, "player", x, y, 0, 16, 16, 24, true) + Player.super.new(self, world, "player", x, y, 0, 16, 12, 24, true) self:setGravity(480) - self:setSprite("sonic", 8, 12) + self:setSprite("sonic", 8, 10) self:cloneSprite() self.guiborder = game.gui.newBorder(424, 20, 6)