feat: draw a real shadow
This commit is contained in:
parent
f636d0c6d3
commit
a7def096df
2 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,11 @@ end
|
||||||
|
|
||||||
function Parent:draw()
|
function Parent:draw()
|
||||||
Parent.super.draw(self)
|
Parent.super.draw(self)
|
||||||
self:drawMainHitbox()
|
--self:drawMainHitbox()
|
||||||
|
end
|
||||||
|
|
||||||
|
function Parent:drawShadow(x, y)
|
||||||
|
self.assets.images["shadow"]:draw(x-4, y+8)
|
||||||
end
|
end
|
||||||
|
|
||||||
return Parent
|
return Parent
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
["textures"] = {
|
["textures"] = {
|
||||||
|
{"shadow", "assets/sprites/shadow.png"}
|
||||||
},
|
},
|
||||||
["sprites"] = {
|
["sprites"] = {
|
||||||
{"sonic", "assets/sprites/characters/sonic"},
|
{"sonic", "assets/sprites/characters/sonic"},
|
||||||
|
|
Loading…
Reference in a new issue