mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-04-18 17:22:55 -05:00
Replay tunings and ruleset accuracies.
In Ti-World and Ti-ARS specifically.
This commit is contained in:
parent
f6db5d22af
commit
9d315d9763
@ -6,6 +6,9 @@ ReplayScene.title = "Replay"
|
|||||||
|
|
||||||
function ReplayScene:new(replay, game_mode, ruleset)
|
function ReplayScene:new(replay, game_mode, ruleset)
|
||||||
config.gamesettings = replay["gamesettings"]
|
config.gamesettings = replay["gamesettings"]
|
||||||
|
config.das = replay["delayed_auto_shift"]
|
||||||
|
config.arr = replay["auto_repeat_rate"]
|
||||||
|
config.dcd = replay["das_cut_delay"]
|
||||||
love.math.setRandomSeed(replay["random_low"], replay["random_high"])
|
love.math.setRandomSeed(replay["random_low"], replay["random_high"])
|
||||||
love.math.setRandomState(replay["random_state"])
|
love.math.setRandomState(replay["random_state"])
|
||||||
self.retry_replay = replay
|
self.retry_replay = replay
|
||||||
|
@ -135,6 +135,9 @@ function GameMode:saveReplay()
|
|||||||
replay["lines"] = self.lines
|
replay["lines"] = self.lines
|
||||||
replay["gamesettings"] = config.gamesettings
|
replay["gamesettings"] = config.gamesettings
|
||||||
replay["secret_inputs"] = self.secret_inputs
|
replay["secret_inputs"] = self.secret_inputs
|
||||||
|
replay["delayed_auto_shift"] = config.das
|
||||||
|
replay["auto_repeat_rate"] = config.arr
|
||||||
|
replay["das_cut_delay"] = config.dcd
|
||||||
replay["timestamp"] = os.time()
|
replay["timestamp"] = os.time()
|
||||||
if love.filesystem.getInfo("replays") == nil then
|
if love.filesystem.getInfo("replays") == nil then
|
||||||
love.filesystem.createDirectory("replays")
|
love.filesystem.createDirectory("replays")
|
||||||
|
@ -6,6 +6,7 @@ local ARS = Ruleset:extend()
|
|||||||
ARS.name = "Ti-ARS"
|
ARS.name = "Ti-ARS"
|
||||||
ARS.hash = "ArikaTI"
|
ARS.hash = "ArikaTI"
|
||||||
|
|
||||||
|
ARS.synchroes = true
|
||||||
-- Component functions.
|
-- Component functions.
|
||||||
|
|
||||||
function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid)
|
function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid)
|
||||||
|
@ -255,7 +255,7 @@ function Ruleset:processPiece(
|
|||||||
drop_locked, hard_drop_locked,
|
drop_locked, hard_drop_locked,
|
||||||
hard_drop_enabled, additive_gravity, classic_lock
|
hard_drop_enabled, additive_gravity, classic_lock
|
||||||
)
|
)
|
||||||
local synchroes_allowed = ({not self.world, true, false})[config.gamesettings.synchroes_allowed]
|
local synchroes_allowed = ({not self.world or self.synchroes, true, false})[config.gamesettings.synchroes_allowed]
|
||||||
|
|
||||||
if synchroes_allowed then
|
if synchroes_allowed then
|
||||||
self:rotatePiece(inputs, piece, grid, prev_inputs, false)
|
self:rotatePiece(inputs, piece, grid, prev_inputs, false)
|
||||||
|
@ -6,6 +6,7 @@ local SRS = Ruleset:extend()
|
|||||||
SRS.name = "Ti-World"
|
SRS.name = "Ti-World"
|
||||||
SRS.hash = "StandardTI"
|
SRS.hash = "StandardTI"
|
||||||
SRS.world = true
|
SRS.world = true
|
||||||
|
SRS.synchroes = true
|
||||||
SRS.colourscheme = {
|
SRS.colourscheme = {
|
||||||
I = "C",
|
I = "C",
|
||||||
L = "O",
|
L = "O",
|
||||||
|
Loading…
Reference in New Issue
Block a user