整理代码,修复泄露到全局的几个变量

This commit is contained in:
MrZ626
2021-02-11 13:35:57 +08:00
parent 67c8ee3c94
commit a28e25c4fb
3 changed files with 4 additions and 2 deletions

View File

@@ -108,12 +108,11 @@ function Player.createBeam(P,R,send,color)
else x2,y2=R.x+308*R.size,R.y+450*R.size
end
wid=int(send^.7*(4+SETTING.atkFX))
local r,g,b=unpack(SKIN.libColor[color])
r,g,b=r*2,g*2,b*2
local a=GAME.modeEnv.royaleMode and not(P.type=="human"or R.type=="human")and .2 or 1
SYSFX.newAttack(1-SETTING.atkFX*.1,x1,y1,x2,y2,wid,r,g,b,a*(SETTING.atkFX+2)*.0626)
SYSFX.newAttack(1-SETTING.atkFX*.1,x1,y1,x2,y2,int(send^.7*(4+SETTING.atkFX)),r,g,b,a*(SETTING.atkFX+2)*.0626)
end
--------------------------</FX>--------------------------

View File

@@ -7,6 +7,7 @@ local rnd=math.random
local scene={}
local state
local bx,by=640,360--Ball posotion
local vx,vy=0,0--Ball velocity
local ry=0--Rotation Y

View File

@@ -1,5 +1,7 @@
local scene={}
local sure
function scene.sceneInit()
sure=false
end