From 01b0f9f61861e4956e23b686be489acbfd5c3786 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Wed, 2 Dec 2020 21:09:52 -0500 Subject: [PATCH] DAS switch behavior implemented --- main.lua | 2 +- scene/game_config.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index d2c7d6e..eef08f1 100644 --- a/main.lua +++ b/main.lua @@ -12,7 +12,7 @@ function love.load() config["side_next"] = false config["reverse_rotate"] = true config["fullscreen"] = false - config["das_last_key"] = false + config["das_last_key"] = config.gamesettings.das_last_key == 2 love.window.setMode(love.graphics.getWidth(), love.graphics.getHeight(), {resizable = true}); diff --git a/scene/game_config.lua b/scene/game_config.lua index b921dd3..6d50581 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -9,6 +9,7 @@ ConfigScene.options = { {"manlock", "Manual locking",{"Per ruleset","Per gamemode","Harddrop", "Softdrop"}}, {"piece_colour", "Piece Colours", {"Per ruleset","Arika" ,"TTC"}}, {"world_reverse","A Button Rotation", {"Left" ,"Auto" ,"Right"}}, + {"das_last_key", "DAS Switch", {"Default", "Instant"}} } local optioncount = #ConfigScene.options @@ -24,6 +25,7 @@ function ConfigScene:new() end function ConfigScene:update() + config["das_last_key"] = config.gamesettings.das_last_key == 2 end function ConfigScene:render()