mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 07:09:02 -06:00
Compare commits
No commits in common. "06225bd35a6e2f954bccb9da55199803e329391a" and "83e197b5d6b40b3c92580402d4fe8ab07490779d" have entirely different histories.
06225bd35a
...
83e197b5d6
@ -13,9 +13,8 @@ function ReplayScene:new(replay, game_mode, ruleset, inputs)
|
||||
self.retry_ruleset = ruleset
|
||||
self.secret_inputs = inputs
|
||||
self.game = game_mode(self.secret_inputs)
|
||||
self.game.save_replay = false
|
||||
self.ruleset = ruleset(self.game)
|
||||
self.game:initialize(self.ruleset)
|
||||
self.game:initialize(self.ruleset, true)
|
||||
self.inputs = {
|
||||
left=false,
|
||||
right=false,
|
||||
|
@ -104,7 +104,7 @@ function GameMode:getSkin()
|
||||
return "2tie"
|
||||
end
|
||||
|
||||
function GameMode:initialize(ruleset)
|
||||
function GameMode:initialize(ruleset, replay)
|
||||
-- generate next queue
|
||||
self.used_randomizer = (
|
||||
table.equalvalues(
|
||||
@ -114,6 +114,7 @@ function GameMode:initialize(ruleset)
|
||||
self.randomizer or BagRandomizer(table.keys(ruleset.colourscheme))
|
||||
)
|
||||
self.ruleset = ruleset
|
||||
self.save_replay = not replay
|
||||
for i = 1, math.max(self.next_queue_length, 1) do
|
||||
table.insert(self.next_queue, self:getNextPiece(ruleset))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user