Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
141d6c77
Commit
141d6c77
authored
Aug 02, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ea8a17c1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
486 additions
and
559 deletions
+486
-559
loading_bg.png
project/resource/loading/loading_bg.png
+0
-0
loading_loading.png
project/resource/loading/loading_loading.png
+0
-0
loading_progressbg.png
project/resource/loading/loading_progressbg.png
+0
-0
loading_progressfront.png
project/resource/loading/loading_progressfront.png
+0
-0
loading_title.png
project/resource/loading/loading_title.png
+0
-0
进度条.png
project/resource/loading/进度条.png
+0
-0
进度条底.png
project/resource/loading/进度条底.png
+0
-0
res.json
project/resource/res.json
+9
-9
skin.json
project/resource/skin.json
+232
-171
ResJson.ts
project/src/ResJson.ts
+11
-206
SkinJson.ts
project/src/SkinJson.ts
+232
-171
LoadingScene.ts
project/src/template/LoadingScene.ts
+2
-2
No files found.
project/resource/loading/loading_bg.png
0 → 100644
View file @
141d6c77
969 KB
project/resource/loading/loading_loading.png
0 → 100644
View file @
141d6c77
2.11 KB
project/resource/loading/loading_progressbg.png
0 → 100644
View file @
141d6c77
2.25 KB
project/resource/loading/loading_progressfront.png
0 → 100644
View file @
141d6c77
11.3 KB
project/resource/loading/loading_title.png
0 → 100644
View file @
141d6c77
139 KB
project/resource/loading/进度条.png
deleted
100644 → 0
View file @
ea8a17c1
3.58 KB
project/resource/loading/进度条底.png
deleted
100644 → 0
View file @
ea8a17c1
399 Bytes
project/resource/res.json
View file @
141d6c77
{
{
"groups"
:
[
"groups"
:
[
{
"keys"
:
"ruleBg.png,我知道了.png"
,
"name"
:
"RulePanel"
},
{
"keys"
:
"startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png"
,
"name"
:
"StartScene"
},
{
{
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png"
,
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png"
,
"name"
:
"common"
"name"
:
"common"
},
},
{
{
"keys"
:
"
进度条.png,进度条底
.png"
,
"keys"
:
"
loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title
.png"
,
"name"
:
"loading"
"name"
:
"loading"
},
},
{
{
"keys"
:
"playBg.jpg"
,
"keys"
:
"playBg.jpg"
,
"name"
:
"playScene"
"name"
:
"playScene"
},
{
"keys"
:
"ruleBg.png,我知道了.png"
,
"name"
:
"RulePanel"
},
{
"keys"
:
"startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png"
,
"name"
:
"StartScene"
}
}
],
],
"path"
:
"./resource/"
"path"
:
"./resource/"
...
...
project/resource/skin.json
View file @
141d6c77
{
{
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"RulePanel"
,
"name"
:
"RulePanel"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"ruleBg"
,
"name"
:
"ruleBg"
,
"x"
:
28
,
"x"
:
28
,
"y"
:
248
,
"y"
:
248
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"ruleBg.png"
"source"
:
"ruleBg.png"
}
}
},
},
{
{
"name"
:
"规则内容"
,
"name"
:
"规则内容"
,
"x"
:
74
,
"x"
:
74
,
"y"
:
369
,
"y"
:
369
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"游戏规则
\n
"
,
"text"
:
"游戏规则
\n
"
,
"size"
:
30
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
},
},
"id"
:
"ruleTxt"
"id"
:
"ruleTxt"
},
},
{
{
"name"
:
"我知道了"
,
"name"
:
"我知道了"
,
"x"
:
164
,
"x"
:
164
,
"y"
:
1197
,
"y"
:
1197
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"我知道了.png"
"tUp"
:
"我知道了.png"
},
},
"id"
:
"knowBtn"
"id"
:
"knowBtn"
},
},
{
{
"name"
:
"关闭按钮"
,
"name"
:
"关闭按钮"
,
"x"
:
625
,
"x"
:
625
,
"y"
:
272
,
"y"
:
272
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"关闭按钮.png"
"tUp"
:
"关闭按钮.png"
},
},
"id"
:
"closeBtn"
"id"
:
"closeBtn"
}
}
]
]
},
},
{
{
"name"
:
"StartScene"
,
"name"
:
"StartScene"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"startSceneBg"
,
"name"
:
"startSceneBg"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"startSceneBg.jpg"
"source"
:
"startSceneBg.jpg"
}
}
},
},
{
{
"name"
:
"底部按钮区"
,
"name"
:
"底部按钮区"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
1242
,
"y"
:
1242
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"底部按钮区背景"
,
"name"
:
"底部按钮区背景"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"底部按钮区背景.png"
"source"
:
"底部按钮区背景.png"
}
}
},
},
{
{
"name"
:
"icon"
,
"name"
:
"icon"
,
"x"
:
56
,
"x"
:
56
,
"y"
:
35
,
"y"
:
35
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"赚次数按钮"
,
"name"
:
"赚次数按钮"
,
"x"
:
547
,
"x"
:
547
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"赚次数按钮.png"
"tUp"
:
"赚次数按钮.png"
},
},
"id"
:
"taskBtn"
"id"
:
"taskBtn"
},
},
{
{
"name"
:
"运动锦鲤按钮"
,
"name"
:
"运动锦鲤按钮"
,
"x"
:
258
,
"x"
:
258
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"运动锦鲤按钮.png"
"tUp"
:
"运动锦鲤按钮.png"
},
},
"id"
:
"lotBtn"
"id"
:
"lotBtn"
},
},
{
{
"name"
:
"排行榜按钮"
,
"name"
:
"排行榜按钮"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"排行榜按钮.png"
"tUp"
:
"排行榜按钮.png"
},
},
"id"
:
"rankBtn"
"id"
:
"rankBtn"
}
}
]
]
}
}
]
]
},
},
{
{
"name"
:
"timesTxt"
,
"name"
:
"timesTxt"
,
"x"
:
286
,
"x"
:
286
,
"y"
:
1205
,
"y"
:
1205
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"剩余次数:3次"
,
"text"
:
"剩余次数:3次"
,
"size"
:
16.00722
,
"size"
:
16.00722
,
"fillColor"
:
"#ffffff"
,
"fillColor"
:
"#ffffff"
,
"textAlpha"
:
1
"textAlpha"
:
1
},
},
"id"
:
"timesTxt"
"id"
:
"timesTxt"
},
},
{
{
"name"
:
"开始游戏"
,
"name"
:
"开始游戏"
,
"x"
:
171
,
"x"
:
171
,
"y"
:
1052
,
"y"
:
1052
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"开始游戏.png"
"tUp"
:
"开始游戏.png"
},
},
"id"
:
"startBtn"
"id"
:
"startBtn"
},
},
{
{
"name"
:
"规则按钮"
,
"name"
:
"规则按钮"
,
"x"
:
621
,
"x"
:
621
,
"y"
:
212
,
"y"
:
212
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"规则按钮.png"
"tUp"
:
"规则按钮.png"
},
},
"id"
:
"ruleBtn"
"id"
:
"ruleBtn"
},
},
{
{
"name"
:
"奖品按钮"
,
"name"
:
"奖品按钮"
,
"x"
:
11
,
"x"
:
11
,
"y"
:
212
,
"y"
:
212
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"奖品按钮.png"
"tUp"
:
"奖品按钮.png"
},
},
"id"
:
"recordBtn"
"id"
:
"recordBtn"
}
}
]
]
}
},
]
{
"name"
:
"loading"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"loading_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_bg.png"
}
},
{
"name"
:
"loading_title"
,
"x"
:
64
,
"y"
:
253
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_title.png"
}
},
{
"name"
:
"loading_loading"
,
"x"
:
299
,
"y"
:
1076
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_loading.png"
}
},
{
"name"
:
"loading_progress"
,
"x"
:
91
,
"y"
:
1028
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"loading_progressbg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_progressbg.png"
}
},
{
"name"
:
"loading_progressfront"
,
"x"
:
8
,
"y"
:
4
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_progressfront.png"
}
}
]
}
]
}
]
}
}
\ No newline at end of file
project/src/ResJson.ts
View file @
141d6c77
export
const
ResJson
=
{
export
const
ResJson
=
{
"groups"
:
[
"groups"
:
[
{
{
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png"
,
"keys"
:
"ruleBg.png,我知道了.png"
,
"name"
:
"common"
,
"name"
:
"RulePanel"
"atlas"
:
{
"toastBg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
460
,
"h"
:
130
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
460
,
"sh"
:
130
,
"ro"
:
false
},
"知道啦.png"
:
{
"x"
:
2
,
"y"
:
134
,
"w"
:
306
,
"h"
:
102
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
306
,
"sh"
:
102
,
"ro"
:
false
},
"waitingBg.png"
:
{
"x"
:
2
,
"y"
:
238
,
"w"
:
160
,
"h"
:
180
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
160
,
"sh"
:
180
,
"ro"
:
true
},
"关闭按钮.png"
:
{
"x"
:
310
,
"y"
:
134
,
"w"
:
60
,
"h"
:
60
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
60
,
"sh"
:
60
,
"ro"
:
false
},
"waitingRot.png"
:
{
"x"
:
372
,
"y"
:
134
,
"w"
:
56
,
"h"
:
56
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
56
,
"sh"
:
56
,
"ro"
:
false
},
"comCloseBtn.png"
:
{
"x"
:
372
,
"y"
:
192
,
"w"
:
48
,
"h"
:
48
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
48
,
"sh"
:
48
,
"ro"
:
false
}
}
},
},
{
{
"keys"
:
"进度条.png,进度条底.png"
,
"keys"
:
"startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png"
,
"name"
:
"loading"
,
"name"
:
"StartScene"
"atlas"
:
{
"进度条底.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
584
,
"h"
:
24
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
584
,
"sh"
:
24
,
"ro"
:
false
},
"进度条.png"
:
{
"x"
:
2
,
"y"
:
28
,
"w"
:
580
,
"h"
:
20
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
580
,
"sh"
:
20
,
"ro"
:
false
}
}
},
},
{
{
"keys"
:
"
playBg.jp
g"
,
"keys"
:
"
comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.pn
g"
,
"name"
:
"
playScene
"
"name"
:
"
common
"
},
},
{
{
"keys"
:
"ruleBg.png,我知道了.png"
,
"keys"
:
"loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png"
,
"name"
:
"RulePanel"
,
"name"
:
"loading"
"atlas"
:
{
"ruleBg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
680
,
"h"
:
1120
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
680
,
"sh"
:
1120
,
"ro"
:
false
},
"我知道了.png"
:
{
"x"
:
684
,
"y"
:
2
,
"w"
:
412
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
412
,
"sh"
:
114
,
"ro"
:
true
}
}
},
},
{
{
"keys"
:
"startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png"
,
"keys"
:
"playBg.jpg"
,
"name"
:
"StartScene"
,
"name"
:
"playScene"
"atlas"
:
{
"底部按钮区背景.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
191
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
191
,
"ro"
:
false
},
"开始游戏.png"
:
{
"x"
:
2
,
"y"
:
195
,
"w"
:
413
,
"h"
:
149
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
413
,
"sh"
:
149
,
"ro"
:
false
},
"运动锦鲤按钮.png"
:
{
"x"
:
417
,
"y"
:
195
,
"w"
:
121
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
121
,
"sh"
:
117
,
"ro"
:
true
},
"奖品按钮.png"
:
{
"x"
:
536
,
"y"
:
195
,
"w"
:
119
,
"h"
:
44
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
119
,
"sh"
:
44
,
"ro"
:
true
},
"规则按钮.png"
:
{
"x"
:
582
,
"y"
:
195
,
"w"
:
119
,
"h"
:
44
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
119
,
"sh"
:
44
,
"ro"
:
true
},
"排行榜按钮.png"
:
{
"x"
:
628
,
"y"
:
195
,
"w"
:
91
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
91
,
"sh"
:
117
,
"ro"
:
true
},
"赚次数按钮.png"
:
{
"x"
:
2
,
"y"
:
346
,
"w"
:
92
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
92
,
"sh"
:
117
,
"ro"
:
true
}
}
}
}
],
],
"path"
:
"
https://yun.duiba.com.cn/db_games/activity/template/1627916159
/resource/"
"path"
:
"
.
/resource/"
}
}
\ No newline at end of file
project/src/SkinJson.ts
View file @
141d6c77
export
const
SkinJson
=
{
export
const
SkinJson
=
{
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"RulePanel"
,
"name"
:
"RulePanel"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"ruleBg"
,
"name"
:
"ruleBg"
,
"x"
:
28
,
"x"
:
28
,
"y"
:
248
,
"y"
:
248
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"ruleBg.png"
"source"
:
"ruleBg.png"
}
}
},
},
{
{
"name"
:
"规则内容"
,
"name"
:
"规则内容"
,
"x"
:
74
,
"x"
:
74
,
"y"
:
369
,
"y"
:
369
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"游戏规则
\n
"
,
"text"
:
"游戏规则
\n
"
,
"size"
:
30
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
},
},
"id"
:
"ruleTxt"
"id"
:
"ruleTxt"
},
},
{
{
"name"
:
"我知道了"
,
"name"
:
"我知道了"
,
"x"
:
164
,
"x"
:
164
,
"y"
:
1197
,
"y"
:
1197
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"我知道了.png"
"tUp"
:
"我知道了.png"
},
},
"id"
:
"knowBtn"
"id"
:
"knowBtn"
},
},
{
{
"name"
:
"关闭按钮"
,
"name"
:
"关闭按钮"
,
"x"
:
625
,
"x"
:
625
,
"y"
:
272
,
"y"
:
272
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"关闭按钮.png"
"tUp"
:
"关闭按钮.png"
},
},
"id"
:
"closeBtn"
"id"
:
"closeBtn"
}
}
]
]
},
},
{
{
"name"
:
"StartScene"
,
"name"
:
"StartScene"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"startSceneBg"
,
"name"
:
"startSceneBg"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"startSceneBg.jpg"
"source"
:
"startSceneBg.jpg"
}
}
},
},
{
{
"name"
:
"底部按钮区"
,
"name"
:
"底部按钮区"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
1242
,
"y"
:
1242
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"底部按钮区背景"
,
"name"
:
"底部按钮区背景"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"type"
:
"sprite"
,
"props"
:
{
"props"
:
{
"source"
:
"底部按钮区背景.png"
"source"
:
"底部按钮区背景.png"
}
}
},
},
{
{
"name"
:
"icon"
,
"name"
:
"icon"
,
"x"
:
56
,
"x"
:
56
,
"y"
:
35
,
"y"
:
35
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
{
"name"
:
"赚次数按钮"
,
"name"
:
"赚次数按钮"
,
"x"
:
547
,
"x"
:
547
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"赚次数按钮.png"
"tUp"
:
"赚次数按钮.png"
},
},
"id"
:
"taskBtn"
"id"
:
"taskBtn"
},
},
{
{
"name"
:
"运动锦鲤按钮"
,
"name"
:
"运动锦鲤按钮"
,
"x"
:
258
,
"x"
:
258
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"运动锦鲤按钮.png"
"tUp"
:
"运动锦鲤按钮.png"
},
},
"id"
:
"lotBtn"
"id"
:
"lotBtn"
},
},
{
{
"name"
:
"排行榜按钮"
,
"name"
:
"排行榜按钮"
,
"x"
:
0
,
"x"
:
0
,
"y"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"排行榜按钮.png"
"tUp"
:
"排行榜按钮.png"
},
},
"id"
:
"rankBtn"
"id"
:
"rankBtn"
}
}
]
]
}
}
]
]
},
},
{
{
"name"
:
"timesTxt"
,
"name"
:
"timesTxt"
,
"x"
:
286
,
"x"
:
286
,
"y"
:
1205
,
"y"
:
1205
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"剩余次数:3次"
,
"text"
:
"剩余次数:3次"
,
"size"
:
28
,
"size"
:
16.00722
,
"fillColor"
:
"#ffffff"
,
"fillColor"
:
"#ffffff"
,
"textAlpha"
:
1
"textAlpha"
:
1
},
},
"id"
:
"timesTxt"
"id"
:
"timesTxt"
},
},
{
{
"name"
:
"开始游戏"
,
"name"
:
"开始游戏"
,
"x"
:
171
,
"x"
:
171
,
"y"
:
1052
,
"y"
:
1052
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"开始游戏.png"
"tUp"
:
"开始游戏.png"
},
},
"id"
:
"startBtn"
"id"
:
"startBtn"
},
},
{
{
"name"
:
"规则按钮"
,
"name"
:
"规则按钮"
,
"x"
:
621
,
"x"
:
621
,
"y"
:
212
,
"y"
:
212
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"规则按钮.png"
"tUp"
:
"规则按钮.png"
},
},
"id"
:
"ruleBtn"
"id"
:
"ruleBtn"
},
},
{
{
"name"
:
"奖品按钮"
,
"name"
:
"奖品按钮"
,
"x"
:
11
,
"x"
:
11
,
"y"
:
212
,
"y"
:
212
,
"type"
:
"button"
,
"type"
:
"button"
,
"props"
:
{
"props"
:
{
"tUp"
:
"奖品按钮.png"
"tUp"
:
"奖品按钮.png"
},
},
"id"
:
"recordBtn"
"id"
:
"recordBtn"
}
}
]
]
}
},
]
{
"name"
:
"loading"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"loading_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_bg.png"
}
},
{
"name"
:
"loading_title"
,
"x"
:
64
,
"y"
:
253
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_title.png"
}
},
{
"name"
:
"loading_loading"
,
"x"
:
299
,
"y"
:
1076
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_loading.png"
}
},
{
"name"
:
"loading_progress"
,
"x"
:
91
,
"y"
:
1028
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"loading_progressbg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_progressbg.png"
}
},
{
"name"
:
"loading_progressfront"
,
"x"
:
8
,
"y"
:
4
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"loading_progressfront.png"
}
}
]
}
]
}
]
}
}
\ No newline at end of file
project/src/template/LoadingScene.ts
View file @
141d6c77
...
@@ -20,10 +20,10 @@ export class LoadingScene extends Scene {
...
@@ -20,10 +20,10 @@ export class LoadingScene extends Scene {
// .position.set(0, 0)
// .position.set(0, 0)
//进度条底图
//进度条底图
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"
进度条底
.png"
))
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"
loading_progressbg
.png"
))
.
position
.
set
((
750
-
577
)
/
2
,
1288
-
24
)
.
position
.
set
((
750
-
577
)
/
2
,
1288
-
24
)
//进度条
//进度条
var
pro
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"
进度条
.png"
));
var
pro
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"
loading_progressfront
.png"
));
pro
.
position
.
set
((
750
-
577
)
/
2
,
1288
-
24
)
pro
.
position
.
set
((
750
-
577
)
/
2
,
1288
-
24
)
//进度条托管
//进度条托管
this
.
progressBar
=
new
ProgressBarS
(
pro
);
this
.
progressBar
=
new
ProgressBarS
(
pro
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment