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
551021bc
Commit
551021bc
authored
Aug 02, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
436fd779
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
203 additions
and
9 deletions
+203
-9
index.html
project/index.html
+2
-0
package.json
project/package.json
+1
-4
ResJson.ts
project/src/ResJson.ts
+200
-5
No files found.
project/index.html
View file @
551021bc
...
...
@@ -63,6 +63,8 @@
</script>
<!-- 构建的js -->
<script
src=
"output.js"
crossorigin=
"anonymous"
></script>
<!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1627916159/output.js" crossorigin="anonymous"></script> -->
</body>
</html>
\ No newline at end of file
project/package.json
View file @
551021bc
...
...
@@ -9,9 +9,6 @@
"co"
:
"^4.6.0"
,
"del"
:
"^2.2.1"
,
"fs"
:
"0.0.2"
,
"imagemin"
:
"^7.0.1"
,
"imagemin-mozjpeg"
:
"^8.0.0"
,
"imagemin-pngquant"
:
"^8.0.0"
,
"mock-webpack-plugin"
:
"^2.0.0"
,
"path"
:
"^0.12.7"
,
"progress"
:
"^2.0.0"
,
...
...
@@ -32,7 +29,7 @@
"createModule"
:
"node scripts/createModule"
,
"createAllModule"
:
"node scripts/createAllModule"
,
"flushRes"
:
"node scripts/flushRes"
,
"handleRes"
:
"node scripts/delRel && node scripts/copyRes && node scripts/createTm && node scripts/textureMerge && node scripts/delTm
&& node scripts/imageMin
"
,
"handleRes"
:
"node scripts/delRel && node scripts/copyRes && node scripts/createTm && node scripts/textureMerge && node scripts/delTm"
,
"upload"
:
"node scripts/upload"
,
"build"
:
"npm run handleRes && node scripts/mergeJson && npm run upload && npm run buildTS"
,
"watch"
:
"webpack --watch"
,
...
...
project/src/ResJson.ts
View file @
551021bc
...
...
@@ -2,11 +2,103 @@ export const ResJson = {
"groups"
:
[
{
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png"
,
"name"
:
"common"
"name"
:
"common"
,
"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"
,
"name"
:
"loading"
"name"
:
"loading"
,
"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.jpg"
,
...
...
@@ -14,12 +106,115 @@ export const ResJson = {
},
{
"keys"
:
"ruleBg.png,我知道了.png"
,
"name"
:
"RulePanel"
"name"
:
"RulePanel"
,
"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"
,
"name"
:
"StartScene"
"name"
:
"StartScene"
,
"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"
:
"
.
/resource/"
"path"
:
"
https://yun.duiba.com.cn/db_games/activity/template/1627916159
/resource/"
}
\ No newline at end of file
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