整理代码,修复泄露到全局的几个变量
This commit is contained in:
@@ -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>--------------------------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
local scene={}
|
||||
|
||||
local sure
|
||||
|
||||
function scene.sceneInit()
|
||||
sure=false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user