World Bone Blocks

This commit is contained in:
Ishaan Bhardwaj 2020-11-03 10:58:21 -05:00
parent 35dafb6615
commit 84b4dc5073
4 changed files with 25 additions and 1 deletions

BIN
res/img/bonew.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

View File

@ -6,6 +6,7 @@ local FourWideGame = SurvivalA3Game:extend()
FourWideGame.name = "4-wide Simulator" FourWideGame.name = "4-wide Simulator"
FourWideGame.hash = "4wide" FourWideGame.hash = "4wide"
FourWideGame.tagline = "The board has gotten narrower! Can you survive the increasing speeds?"
function FourWideGame:initialize(ruleset) function FourWideGame:initialize(ruleset)
self.super:initialize(ruleset) self.super:initialize(ruleset)

View File

@ -24,6 +24,29 @@ Ruleset.enable_IRS_wallkicks = false
-- Component functions. -- Component functions.
function Ruleset:new()
blocks["bone"] = (not self.world) and
{
R = love.graphics.newImage("res/img/bone.png"),
O = love.graphics.newImage("res/img/bone.png"),
Y = love.graphics.newImage("res/img/bone.png"),
G = love.graphics.newImage("res/img/bone.png"),
C = love.graphics.newImage("res/img/bone.png"),
B = love.graphics.newImage("res/img/bone.png"),
M = love.graphics.newImage("res/img/bone.png"),
X = love.graphics.newImage("res/img/bone.png"),
} or {
R = love.graphics.newImage("res/img/bonew.png"),
O = love.graphics.newImage("res/img/bonew.png"),
Y = love.graphics.newImage("res/img/bonew.png"),
G = love.graphics.newImage("res/img/bonew.png"),
C = love.graphics.newImage("res/img/bonew.png"),
B = love.graphics.newImage("res/img/bonew.png"),
M = love.graphics.newImage("res/img/bonew.png"),
X = love.graphics.newImage("res/img/bonew.png"),
}
end
function Ruleset:rotatePiece(inputs, piece, grid, prev_inputs, initial) function Ruleset:rotatePiece(inputs, piece, grid, prev_inputs, initial)
local new_inputs = {} local new_inputs = {}