Add spiky box variants
This commit is contained in:
parent
761214fe3e
commit
c3a2692351
10 changed files with 340 additions and 19 deletions
|
|
@ -16,7 +16,7 @@ end
|
|||
|
||||
-- Draw two teeth on every exposed cell edge. The art remains synthetic: the
|
||||
-- underlying box sprite and its collision shape are still the authored base.
|
||||
function drawSkewerSprite(sprite, cellShape, x, y, scale)
|
||||
function drawSpikes(cellShape, x, y, scale)
|
||||
cellShape = cellShape or {{x = 1, y = 1}}
|
||||
local cellSize = 16 * scale
|
||||
local inset = scale
|
||||
|
|
@ -50,7 +50,10 @@ function drawSkewerSprite(sprite, cellShape, x, y, scale)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function drawSkewerSprite(sprite, cellShape, x, y, scale)
|
||||
drawSpikes(cellShape, x, y, scale)
|
||||
love.graphics.draw(sprite, x, y, 0, scale, scale)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue