diff --git a/load/graphics.lua b/load/graphics.lua index b79fc74..b442167 100644 --- a/load/graphics.lua +++ b/load/graphics.lua @@ -80,4 +80,4 @@ misc_graphics = { go = love.graphics.newImage("res/img/go.png"), select_mode = love.graphics.newImage("res/img/select_mode.png"), strike = love.graphics.newImage("res/img/strike.png"), -} +} \ No newline at end of file diff --git a/res/img/bonew.png b/res/img/bonew.png new file mode 100644 index 0000000..5fc2bbb Binary files /dev/null and b/res/img/bonew.png differ diff --git a/tetris/modes/4wide.lua b/tetris/modes/4wide.lua index 03f465d..e49916f 100644 --- a/tetris/modes/4wide.lua +++ b/tetris/modes/4wide.lua @@ -6,6 +6,7 @@ local FourWideGame = SurvivalA3Game:extend() FourWideGame.name = "4-wide Simulator" FourWideGame.hash = "4wide" +FourWideGame.tagline = "The board has gotten narrower! Can you survive the increasing speeds?" function FourWideGame:initialize(ruleset) self.super:initialize(ruleset) diff --git a/tetris/rulesets/ruleset.lua b/tetris/rulesets/ruleset.lua index 0833116..6cf0c3d 100644 --- a/tetris/rulesets/ruleset.lua +++ b/tetris/rulesets/ruleset.lua @@ -24,6 +24,29 @@ Ruleset.enable_IRS_wallkicks = false -- 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) local new_inputs = {}