Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
1399ae5c
Commit
1399ae5c
authored
Dec 03, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6deb01c2
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
1094 deletions
+41
-1094
jump-high-3.json
dist/customs/jump-high-3.json
+15
-15
load-assets.js
src/custom/jump-high-3/debug/load-assets.js
+2
-2
main.js
src/custom/jump-high-3/debug/main.js
+1
-1056
main.js.map
src/custom/jump-high-3/debug/main.js.map
+1
-1
meta.json
src/custom/jump-high-3/meta.json
+14
-14
GameView.ts
src/custom/jump-high-3/src/game/GameView.ts
+6
-4
Player.ts
src/custom/jump-high-3/src/game/Player.ts
+2
-2
No files found.
dist/customs/jump-high-3.json
View file @
1399ae5c
This diff is collapsed.
Click to expand it.
src/custom/jump-high-3/debug/load-assets.js
View file @
1399ae5c
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
const
assets
=
[
const
assets
=
[
{
{
"name"
:
"方块素材0"
,
"name"
:
"方块素材0"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
58b04890a7a33425e87845983268b0f689df67a7
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
4c6fba8e09e6fa6015e911870c295ff3e11bde72
.svga"
,
"uuid"
:
"c3e908ad-a895-4463-98a9-c78c19ba5e6b"
,
"uuid"
:
"c3e908ad-a895-4463-98a9-c78c19ba5e6b"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"方块素材0_hit"
,
"name"
:
"方块素材0_hit"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
655685bd37428fb7e8ff9353c78c1d8424882ab1
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
4c6fba8e09e6fa6015e911870c295ff3e11bde72
.svga"
,
"uuid"
:
"79cd10e7-67c4-4cb1-9e56-598100162a7c"
,
"uuid"
:
"79cd10e7-67c4-4cb1-9e56-598100162a7c"
,
"ext"
:
".svga"
"ext"
:
".svga"
}
}
...
...
src/custom/jump-high-3/debug/main.js
View file @
1399ae5c
This diff is collapsed.
Click to expand it.
src/custom/jump-high-3/debug/main.js.map
View file @
1399ae5c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/custom/jump-high-3/meta.json
View file @
1399ae5c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"jumpTips"
:
{
"jumpTips"
:
{
"alias"
:
"跳动提示文案"
,
"alias"
:
"跳动提示文案"
,
"type"
:
"array<string>"
,
"type"
:
"array<string>"
,
"default"
:
"
勤洗手,早睡早起,均衡饮食,定时活动,多喝开水,多看书,少熬夜,坚持午觉,多思考,常微笑,少喝咖啡,听听音乐,坚持刷牙,注意防晒,远离烟草,定期体检,重视早餐,保护肩颈,常吃水果,平衡心理
"
"default"
:
"
不错,赞,加油
"
},
},
"goldBagScoreMultiple"
:
{
"goldBagScoreMultiple"
:
{
"alias"
:
"出现钱袋的分数倍数"
,
"alias"
:
"出现钱袋的分数倍数"
,
...
@@ -100,17 +100,17 @@
...
@@ -100,17 +100,17 @@
"blockWidth"
:
{
"blockWidth"
:
{
"alias"
:
"方块宽度"
,
"alias"
:
"方块宽度"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
396
"default"
:
201
},
},
"blockHitWidth"
:
{
"blockHitWidth"
:
{
"alias"
:
"方块碰撞宽度"
,
"alias"
:
"方块碰撞宽度"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
312
"default"
:
201
},
},
"blockHitHeight"
:
{
"blockHitHeight"
:
{
"alias"
:
"方块碰撞高度"
,
"alias"
:
"方块碰撞高度"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
66
"default"
:
160
},
},
"blockPaddingTop"
:
{
"blockPaddingTop"
:
{
"alias"
:
"方块上边距"
,
"alias"
:
"方块上边距"
,
...
@@ -300,13 +300,13 @@
...
@@ -300,13 +300,13 @@
},
},
{
{
"name"
:
"背景图"
,
"name"
:
"背景图"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
7ac7be060f3dac92602bb6b734e8137d589184fd.pn
g"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
c90e6bc6718e4cc83d30bf2ce8b9f80a909adbee.jp
g"
,
"uuid"
:
"43618417-f27f-429c-bba3-e0715e552ca2"
,
"uuid"
:
"43618417-f27f-429c-bba3-e0715e552ca2"
,
"ext"
:
".jpg"
"ext"
:
".jpg"
},
},
{
{
"name"
:
"底座"
,
"name"
:
"底座"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
762e12b14dbdcda1a6a9dc09e79c1d0da08e60a6
.png"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
140689f82392c2b9ce7cde801ec005c2582137a2
.png"
,
"uuid"
:
"a6b3f654-2c26-434a-a873-aabc12cd1d80"
,
"uuid"
:
"a6b3f654-2c26-434a-a873-aabc12cd1d80"
,
"ext"
:
".png"
"ext"
:
".png"
},
},
...
@@ -319,31 +319,31 @@
...
@@ -319,31 +319,31 @@
{
{
"name"
:
"准备立正"
,
"name"
:
"准备立正"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
d940438c2f7b4a931d1e81df1a096a829e43d3be
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"25dc07d0-b223-4bab-8ea6-2f3282d4eb44"
,
"uuid"
:
"25dc07d0-b223-4bab-8ea6-2f3282d4eb44"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"跳上升"
,
"name"
:
"跳上升"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
99511df167598a8941dae2eccc774e793e3f3259
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"2604a92a-4ea4-4ae3-80fb-c0f8b0e34bb5"
,
"uuid"
:
"2604a92a-4ea4-4ae3-80fb-c0f8b0e34bb5"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"跳下落"
,
"name"
:
"跳下落"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
9b05e37a4a269403b7ae996373c6a9346b6708f5
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
cf23d11c7c4907905a7f6b65cb772c571abc7a10
.svga"
,
"uuid"
:
"001a634e-5aa7-41de-aa35-0a7ce4bab6a2"
,
"uuid"
:
"001a634e-5aa7-41de-aa35-0a7ce4bab6a2"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"普通着地"
,
"name"
:
"普通着地"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
8547b977dcdad544ecac899ecc0374d136f0b3e9
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"99054cf7-9aee-4b90-a5c6-ef25787f46e5"
,
"uuid"
:
"99054cf7-9aee-4b90-a5c6-ef25787f46e5"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"完美着地_笑"
,
"name"
:
"完美着地_笑"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
ded47e8a1381e2c44cca4f717d320809197cae07
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"9ce4bfd2-bb67-4f74-a384-64be878c4396"
,
"uuid"
:
"9ce4bfd2-bb67-4f74-a384-64be878c4396"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
...
@@ -361,13 +361,13 @@
...
@@ -361,13 +361,13 @@
},
},
{
{
"name"
:
"边缘着地"
,
"name"
:
"边缘着地"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
c3232de2bac56e88f34967890e8e513fd235bf82
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"aec9d063-c95c-40ae-b0b5-bd7140fc70b4"
,
"uuid"
:
"aec9d063-c95c-40ae-b0b5-bd7140fc70b4"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
{
"name"
:
"被撞开"
,
"name"
:
"被撞开"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
4f7a39fdc470bde9dbf1c43e1fa591ecc31aa32
6.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a0
6.svga"
,
"uuid"
:
"67daf7c4-158b-4ec5-8383-00e3525d2714"
,
"uuid"
:
"67daf7c4-158b-4ec5-8383-00e3525d2714"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
...
@@ -379,7 +379,7 @@
...
@@ -379,7 +379,7 @@
},
},
{
{
"name"
:
"降落"
,
"name"
:
"降落"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
8615c022ce4068983a74a680849f426a5df98290
.svga"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/
0c33a8285661684f24062af815a38befdbf36a06
.svga"
,
"uuid"
:
"82b514a9-69c4-425c-a77d-f34efeef1997"
,
"uuid"
:
"82b514a9-69c4-425c-a77d-f34efeef1997"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
...
...
src/custom/jump-high-3/src/game/GameView.ts
View file @
1399ae5c
...
@@ -268,8 +268,10 @@ export default class GameView extends engine.Container {
...
@@ -268,8 +268,10 @@ export default class GameView extends engine.Container {
block
.
visible
=
true
;
block
.
visible
=
true
;
}
else
{
}
else
{
block
=
new
Block
();
block
=
new
Block
();
blockContainer
.
addChild
(
block
);
blockContainer
.
addChild
At
(
block
,
0
);
}
}
blockContainer
.
addChildAt
(
block
,
0
);
block
.
reset
({
block
.
reset
({
type
:
Math
.
floor
(
Math
.
random
()
*
props
.
blockAssets
.
length
),
type
:
Math
.
floor
(
Math
.
random
()
*
props
.
blockAssets
.
length
),
});
});
...
@@ -378,12 +380,12 @@ export default class GameView extends engine.Container {
...
@@ -378,12 +380,12 @@ export default class GameView extends engine.Container {
this
.
currentBlock
.
playHit
();
this
.
currentBlock
.
playHit
();
this
.
_playerShadow
.
visible
=
false
;
this
.
_playerShadow
.
visible
=
false
;
// this.currentBlock.stop();
// this.currentBlock.stop();
this
.
playHitEffect
(
dir
);
//
this.playHitEffect(dir);
await
this
.
player
.
hitAway
(
dir
);
await
this
.
player
.
hitAway
(
dir
);
this
.
playZoom
(
'out'
);
//
this.playZoom('out');
await
this
.
player
.
parachute
(
dir
);
await
this
.
player
.
parachute
(
dir
);
console
.
log
(
'jump-high-game-end'
)
engine
.
globalEvent
.
dispatchEvent
(
'jump-high-game-end'
);
engine
.
globalEvent
.
dispatchEvent
(
'jump-high-game-end'
);
}
}
...
...
src/custom/jump-high-3/src/game/Player.ts
View file @
1399ae5c
...
@@ -222,11 +222,11 @@ export default class Player extends engine.Container {
...
@@ -222,11 +222,11 @@ export default class Player extends engine.Container {
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
engine
.
Tween
.
get
(
this
)
engine
.
Tween
.
get
(
this
)
.
wait
(
200
)
//
.wait(200)
.
call
(
function
()
{
.
call
(
function
()
{
playSound
(
'降落伞下落音效'
);
playSound
(
'降落伞下落音效'
);
})
})
.
wait
(
300
)
//
.wait(300)
.
to
({
y
:
this
.
y
+
props
.
parachuteDistance
},
props
.
parachuteDuration
)
.
to
({
y
:
this
.
y
+
props
.
parachuteDistance
},
props
.
parachuteDuration
)
.
set
({
anchorOffsetY
:
0
})
.
set
({
anchorOffsetY
:
0
})
.
call
(
resolve
)
.
call
(
resolve
)
...
...
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