背景系统增加“默认背景”功能,新增节日飘雪背景
This commit is contained in:
@@ -5,7 +5,7 @@ local sin=math.sin
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
@@ -9,7 +9,7 @@ local scene={}
|
||||
local t1,t2,r
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
BGM.play("blank")
|
||||
t1,t2=0,0--Timer
|
||||
r={}--Random animation type
|
||||
|
||||
@@ -45,7 +45,10 @@ local tip
|
||||
|
||||
function scene.sceneInit()
|
||||
tip=text.getTip()
|
||||
BG.set("space")
|
||||
BG.set(
|
||||
FESTIVAL=="Xmas"and"snow"or
|
||||
"space"
|
||||
)
|
||||
|
||||
GAME.modeEnv=NONE
|
||||
--Create demo player
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
|
||||
@@ -20,7 +20,7 @@ local touchDist
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit(org)
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
destroyPlayers()
|
||||
local cam=mapCam
|
||||
cam.zoomK=org=="main"and 5 or 1
|
||||
|
||||
@@ -4,7 +4,7 @@ local int=math.floor
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,"conf/settings")
|
||||
|
||||
@@ -13,7 +13,7 @@ function scene.sceneInit()
|
||||
last=0
|
||||
jump=0
|
||||
cv=SETTING.cv
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,"conf/settings")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,"conf/settings")
|
||||
@@ -51,7 +51,7 @@ scene.widgetList={
|
||||
code=function()
|
||||
BG.set("none")
|
||||
SETTING.bg=not SETTING.bg
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end},
|
||||
WIDGET.newSwitch{name="power", x=990, y=640,font=35,disp=WIDGET.lnk_SETval("powerInfo"),
|
||||
code=function()
|
||||
|
||||
@@ -8,7 +8,7 @@ local time,v
|
||||
function scene.sceneInit()
|
||||
time=0
|
||||
v=1
|
||||
BG.set("space")
|
||||
BG.set()
|
||||
end
|
||||
|
||||
function scene.mouseDown(x,y)
|
||||
|
||||
Reference in New Issue
Block a user