feat: draw a real shadow

This commit is contained in:
Kazhnuz 2019-07-27 20:55:00 +02:00
parent f636d0c6d3
commit a7def096df
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,11 @@ end
function Parent:draw()
Parent.super.draw(self)
self:drawMainHitbox()
--self:drawMainHitbox()
end
function Parent:drawShadow(x, y)
self.assets.images["shadow"]:draw(x-4, y+8)
end
return Parent

View file

@ -1,6 +1,6 @@
return {
["textures"] = {
{"shadow", "assets/sprites/shadow.png"}
},
["sprites"] = {
{"sonic", "assets/sprites/characters/sonic"},