From 96f8f2cb28093cc4c61f5bb1906b39b5db66e783 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 27 Sep 2021 01:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8Fdtw=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E7=A7=98=E5=AF=86=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_dtw.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/parts/scenes/app_dtw.lua b/parts/scenes/app_dtw.lua index 4ee100db..1f3c73d4 100644 --- a/parts/scenes/app_dtw.lua +++ b/parts/scenes/app_dtw.lua @@ -180,7 +180,14 @@ function reset() freshSelectors() time=0 score=0 - rollSpeed=6.26 + + local t=love.system.getClipboardText() + if type(t)=='string'then + t=t:lower():match("^s=(%d+)$") + t=t and tonumber(t)and tonumber(t)*2 + t=t and tonumber(t)>6.26 and tonumber(t)<=20 and t + end + rollSpeed=type(t)=='number'and t or 6.26 pos={} while #pos<7 do generator[mode]()end