背景系统增加“默认背景”功能,新增节日飘雪背景

This commit is contained in:
MrZ626
2020-12-25 20:23:16 +08:00
parent 4850cdb292
commit 1729e1f36d
12 changed files with 77 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ local sin=math.sin
local scene={}
function scene.sceneInit()
BG.set("space")
BG.set()
end
function scene.draw()

View File

@@ -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

View File

@@ -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

View File

@@ -1,7 +1,7 @@
local scene={}
function scene.sceneInit()
BG.set("space")
BG.set()
end
scene.widgetList={

View File

@@ -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

View File

@@ -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")

View File

@@ -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")

View File

@@ -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()

View File

@@ -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)