Add spiky box variants

This commit is contained in:
Your Name 2026-08-11 20:08:58 -04:00
parent 761214fe3e
commit c3a2692351
10 changed files with 340 additions and 19 deletions

View file

@ -16,6 +16,7 @@ function Entity:initialize(t)
self.collision = t.collision --"none", "moveable", "unmoveable"
self.sticky = t.sticky or false
self.skewer = t.skewer or false
self.spiky = t.spiky or false
self.sprite = repSprite
self.shaAmount = t.sha or 1
-- onBump is a method (see Entity:onBump) so mixins like Dialogable can
@ -144,6 +145,10 @@ function Entity:isSkewer()
return self.skewer
end
function Entity:isSpiky()
return self.spiky
end
function Entity:canPassOver()
if self:getCollision() == "none" then
return true