Rearrange game settings, add toggle for replay saving
parent
47a5a53e23
commit
afe6a43dab
|
@ -13,11 +13,12 @@ ConfigScene.options = {
|
|||
{"world_reverse", "A Button Rotation", false, {"Left", "Auto", "Right"}},
|
||||
{"spawn_positions", "Spawn Positions", false, {"Per ruleset", "In field", "Out of field"}},
|
||||
{"display_gamemode", "Debug Info", false, {"On", "Off"}},
|
||||
{"das_last_key", "DAS Last Key", false, {"Off", "On"}},
|
||||
{"save_replay", "Save Replays", false, {"On", "Off"}},
|
||||
{"smooth_movement", "Smooth Piece Drop", false, {"On", "Off"}},
|
||||
{"synchroes_allowed", "Synchroes", false, {"Per ruleset", "On", "Off"}},
|
||||
{"diagonal_input", "Diagonal Input", false, {"On", "Off"}},
|
||||
{"das_last_key", "DAS Last Key", false, {"Off", "On"}},
|
||||
{"buffer_lock", "Buffer Drop Type", false, {"Off", "Hold", "Tap"}},
|
||||
{"synchroes_allowed", "Synchroes", false, {"Per ruleset", "On", "Off"}},
|
||||
{"sfx_volume", "SFX", true, "sfxSlider"},
|
||||
{"bgm_volume", "BGM", true, "bgmSlider"},
|
||||
}
|
||||
|
|
|
@ -121,12 +121,15 @@ function ReplaySelectScene:render()
|
|||
love.graphics.setFont(font_3x5_2)
|
||||
for idx, replay in ipairs(replays) do
|
||||
if(idx >= self.menu_state.replay-9 and idx <= self.menu_state.replay+9) then
|
||||
local display_string = os.date("%c", replay["timestamp"]).." "..replay["mode"].." "..replay["ruleset"]
|
||||
local display_string = os.date("%c", replay["timestamp"]).." - "..replay["mode"].." - "..replay["ruleset"]
|
||||
if replay["level"] ~= nil then
|
||||
display_string = display_string.." Level: "..replay["level"]
|
||||
display_string = display_string.." - Level: "..replay["level"]
|
||||
end
|
||||
if replay["timer"] ~= nil then
|
||||
display_string = display_string.." Time: "..formatTime(replay["timer"])
|
||||
display_string = display_string.." - Time: "..formatTime(replay["timer"])
|
||||
end
|
||||
if #display_string > 75 then
|
||||
display_string = display_string:sub(1, 75) .. "..."
|
||||
end
|
||||
love.graphics.printf(display_string, 6, (260 - 20*(self.menu_state.replay)) + 20 * idx, 640, "left")
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ function GameMode:new(secret_inputs)
|
|||
self.random_low, self.random_high = love.math.getRandomSeed()
|
||||
self.random_state = love.math.getRandomState()
|
||||
self.secret_inputs = secret_inputs
|
||||
self.save_replay = true
|
||||
self.save_replay = config.gamesettings.save_replay == 1
|
||||
|
||||
self.grid = Grid(10, 24)
|
||||
self.randomizer = Randomizer()
|
||||
|
|
Loading…
Reference in New Issue