PAIRS added, with bugfixes

This commit is contained in:
Ishaan Bhardwaj
2021-01-07 18:42:49 -05:00
parent 64047eaf9c
commit 8b09833ae6
4 changed files with 244 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ local playedReadySE = false
local playedGoSE = false
local Grid = require 'tetris.components.grid'
local Randomizer = require 'tetris.randomizers.randomizer'
local Randomizer = require 'tetris.randomizers.bag7'
local BagRandomizer = require 'tetris.randomizers.bag'
local GameMode = Object:extend()

View File

@@ -488,7 +488,7 @@ function SakuraGame:drawScoringInfo()
love.graphics.printf("EFFECT: " .. effects[self.current_map], 240, 300, 160, "left")
end
if self.randomizer.history then
love.graphics.printf("RANDOM PIECES ACTIVE!", 240, 295, 200, "left")
love.graphics.printf("RANDOM PIECES ACTIVE!", 240, 150, 200, "left")
end
love.graphics.setFont(font_3x5_3)

View File

@@ -92,12 +92,8 @@ function SurvivalA3Game:getGarbageLimit()
else return 8 end
end
function SurvivalA3Game:getNextPiece(ruleset)
return {
skin = self.level >= 1000 and "bone" or "2tie",
shape = self.randomizer:nextPiece(),
orientation = ruleset:getDefaultOrientation(),
}
function SurvivalA3Game:getSkin()
return self.level >= 1000 and "bone" or "2tie"
end
function SurvivalA3Game:hitTorikan(old_level, new_level)