Add spiky box variants
This commit is contained in:
parent
761214fe3e
commit
c3a2692351
10 changed files with 340 additions and 19 deletions
|
|
@ -11,6 +11,7 @@ function GUI:initialize(t)
|
|||
self.text = t.text
|
||||
self.goopy = t.goopy or false
|
||||
self.skewer = t.skewer or false
|
||||
self.spiky = t.spiky or false
|
||||
self.cells = t.cells
|
||||
|
||||
if not t.onClic then
|
||||
|
|
@ -106,6 +107,8 @@ function GUI:draw()
|
|||
drawGoopySprite(sprite, box.x, box.y, self.scale)
|
||||
elseif self.skewer and drawSkewerSprite then
|
||||
drawSkewerSprite(sprite, self.cells and self.cells[color], box.x, box.y, self.scale)
|
||||
elseif self.spiky and drawSpikySprite then
|
||||
drawSpikySprite(sprite, self.cells and self.cells[color], box.x, box.y, self.scale)
|
||||
else
|
||||
love.graphics.draw(sprite, box.x, box.y, 0, self.scale, self.scale)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue