mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-25 04:59:02 -06:00
Replay tunings fix
This commit is contained in:
parent
9e447d51a7
commit
d868e8b803
@ -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"]
|
||||||
|
if replay["delayed_auto_shift"] then config.das = replay["delayed_auto_shift"] end
|
||||||
|
if replay["auto_repeat_rate"] then config.arr = replay["auto_repeat_rate"] end
|
||||||
|
if replay["das_cut_delay"] then config.dcd = replay["das_cut_delay"] end
|
||||||
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user