From 7a2735975512ce3a3aa00647be78256b0ba2bf7e Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 13 Nov 2020 23:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/init.lua | 6 ++---- parts/scenes/mode.lua | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/parts/player/init.lua b/parts/player/init.lua index cf057fc3..d2eb9bb3 100644 --- a/parts/player/init.lua +++ b/parts/player/init.lua @@ -1,13 +1,11 @@ local Player=require("parts/player/player") local prepareSequence=require("parts/player/prepareSequence") +local gameEnv0=require("parts/player/gameEnv0") local mt=love.math local rnd,max,min=math.random,math.max,math.min local ins=table.insert -local gameEnv0=require("parts/player/gameEnv0") - - local PLY={ update=require("parts/player/update"), draw=require("parts/player/draw"), @@ -133,6 +131,7 @@ local function applyGameEnv(P)--Finish gameEnv processing ) P:set20G(P._20G) P:setHold(ENV.hold) + P:setRS(ENV.RS) if type(ENV.mission)=="table"then P.curMission=1 @@ -253,7 +252,6 @@ local function newEmptyPlayer(id,x,y,size) P.human=false P.sound=false - P:setRS("TRS") -- P.newNext=nil--Call prepareSequence()to get a function to get new next diff --git a/parts/scenes/mode.lua b/parts/scenes/mode.lua index dbd0eec5..87138fdc 100644 --- a/parts/scenes/mode.lua +++ b/parts/scenes/mode.lua @@ -312,6 +312,6 @@ function Pnt.mode() end WIDGET.init("mode",{ - WIDGET.newButton({name="start", x=1040, y=655,w=180,h=80, font=40,code=WIDGET.lnk_pressKey("return"),hide=function()return not mapCam.sel end}), - WIDGET.newButton({name="back", x=1200, y=655,w=120,h=80, font=40,code=WIDGET.lnk_BACK}), + WIDGET.newButton({name="start",x=1040,y=655,w=180,h=80,font=40,code=WIDGET.lnk_pressKey("return"),hide=function()return not mapCam.sel end}), + WIDGET.newButton({name="back",x=1200,y=655,w=120,h=80,font=40,code=WIDGET.lnk_BACK}), }) \ No newline at end of file