Init arbitrary widths

This commit is contained in:
Ishaan Bhardwaj
2021-01-10 22:40:13 -05:00
parent 9d44d1e771
commit 0f09d47e60
4 changed files with 51 additions and 26 deletions

View File

@@ -13,7 +13,7 @@ local GameMode = Object:extend()
GameMode.rollOpacityFunction = function(age) return 0 end
function GameMode:new(secret_inputs)
self.grid = Grid()
self.grid = Grid(10)
self.randomizer = Randomizer()
self.piece = nil
self.ready_frames = 100

View File

@@ -2,6 +2,7 @@ require 'funcs'
local GameMode = require 'tetris.modes.gamemode'
local Piece = require 'tetris.components.piece'
local Grid = require 'tetris.components.grid'
local History4RollsRandomizer = require 'tetris.randomizers.history_4rolls'
@@ -16,6 +17,8 @@ MarathonA1Game.tagline = "Can you score enough points to reach the title of Gran
function MarathonA1Game:new()
MarathonA1Game.super:new()
self.grid = Grid(8)
self.roll_frames = 0
self.combo = 1
self.bravos = 0