improvement: better shadow drawing
This commit is contained in:
parent
a7def096df
commit
f6c53fd1a3
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ function Parent:draw()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Parent:drawShadow(x, y)
|
function Parent:drawShadow(x, y)
|
||||||
self.assets.images["shadow"]:draw(x-4, y+8)
|
self.assets.images["shadow"]:draw(x-4, y+4)
|
||||||
end
|
end
|
||||||
|
|
||||||
return Parent
|
return Parent
|
||||||
|
|
|
@ -3,10 +3,10 @@ local Parent = require(cwd .. "parent")
|
||||||
local Player = Parent:extend()
|
local Player = Parent:extend()
|
||||||
|
|
||||||
function Player:new(world, x, y, z, id)
|
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:setGravity(480)
|
||||||
|
|
||||||
self:setSprite("sonic", 8, 12)
|
self:setSprite("sonic", 8, 10)
|
||||||
self:cloneSprite()
|
self:cloneSprite()
|
||||||
|
|
||||||
self.guiborder = game.gui.newBorder(424, 20, 6)
|
self.guiborder = game.gui.newBorder(424, 20, 6)
|
||||||
|
|
Loading…
Reference in a new issue