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
5c486690
Commit
5c486690
authored
Dec 03, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eccf6925
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
79 deletions
+6
-79
jump-high-3.json
dist/customs/jump-high-3.json
+1
-13
main.js
src/custom/jump-high-3/debug/main.js
+1
-19
main.js.map
src/custom/jump-high-3/debug/main.js.map
+1
-1
meta.json
src/custom/jump-high-3/meta.json
+1
-18
GameView.ts
src/custom/jump-high-3/src/game/GameView.ts
+2
-27
Player.ts
src/custom/jump-high-3/src/game/Player.ts
+0
-1
No files found.
dist/customs/jump-high-3.json
View file @
5c486690
This diff is collapsed.
Click to expand it.
src/custom/jump-high-3/debug/main.js
View file @
5c486690
...
...
@@ -488,7 +488,6 @@
};
return
Player
;
}(
engine
.
Container
));
//# sourceMappingURL=Player.js.map
var
ObjectPool
=
engine
.
ObjectPool
;
var
PoolName
=
'gold-bag'
;
...
...
@@ -524,22 +523,12 @@
var
base
=
this
.
base
=
new
Base
();
frontContainer
.
addChild
(
base
);
base
.
setup
();
var
blockShadow
=
this
.
_blockShadow
=
new
engine
.
Image
(
getTextureByName
(
'方块阴影'
));
blockShadow
.
anchorX
=
blockShadow
.
width
/
2
;
blockShadow
.
anchorY
=
blockShadow
.
height
/
2
;
blockShadow
.
x
=
-
(
blockShadow
.
width
-
base
.
width
)
/
2
;
blockShadow
.
y
=
props
.
blockShadowOffset
;
base
.
addChild
(
blockShadow
);
var
blockContainer
=
this
.
blockContainer
=
new
engine
.
Container
();
frontContainer
.
addChild
(
blockContainer
);
var
player
=
this
.
player
=
new
Player
();
frontContainer
.
addChild
(
player
);
player
.
setup
();
player
.
addEventListener
(
'jump-on-top'
,
this
.
onPlayerJumpOnTop
,
this
);
var
playerShadow
=
this
.
_playerShadow
=
new
engine
.
Image
(
getTextureByName
(
'玩家阴影'
));
playerShadow
.
anchorX
=
playerShadow
.
width
/
2
;
playerShadow
.
anchorY
=
playerShadow
.
height
/
2
;
playerShadow
.
x
=
this
.
player
.
x
-
playerShadow
.
width
/
2
;
var
scoreAddTipsContainer
=
this
.
scoreAddTipsContainer
=
new
engine
.
Container
();
scoreAddTipsContainer
.
width
=
750
;
scoreAddTipsContainer
.
anchorX
=
scoreAddTipsContainer
.
width
/
2
;
...
...
@@ -553,7 +542,6 @@
scoreAddTips
.
text
=
"+0"
;
scoreAddTips
.
x
=
this
.
player
.
x
-
scoreAddTips
.
width
/
2
;
scoreAddTipsContainer
.
addChild
(
scoreAddTips
);
frontContainer
.
addChild
(
playerShadow
);
frontContainer
.
addChild
(
player
);
frontContainer
.
addChild
(
scoreAddTipsContainer
);
ObjectPool
.
recycleObject
(
PoolName
,
ObjectPool
.
getObject
(
PoolName
,
{
...
...
@@ -636,7 +624,6 @@
return
tslib
.
__generator
(
this
,
function
(
_a
)
{
switch
(
_a
.
label
)
{
case
0
:
this
.
_playerShadow
.
y
=
this
.
player
.
y
+
props
.
playerShadowOffset
;
this
.
scoreAddTipsContainer
.
y
=
this
.
player
.
y
+
props
.
scoreAddTipsOffset
;
if
(
!!
revive
)
return
[
3
,
2
];
return
[
4
,
this
.
player
.
playReady
()];
...
...
@@ -820,7 +807,6 @@
this
.
needHitTest
=
false
;
clearInterval
(
this
.
timer
);
this
.
currentBlock
.
playHit
();
this
.
_playerShadow
.
visible
=
false
;
return
[
4
,
this
.
player
.
hitAway
(
dir
)];
case
1
:
_a
.
sent
();
...
...
@@ -844,7 +830,6 @@
if
(
!
this
.
_touchEnabled
)
{
return
[
2
];
}
this
.
_playerShadow
.
visible
=
false
;
this
.
_touchEnabled
=
false
;
this
.
playOpenGoldBag
();
return
[
4
,
this
.
player
.
jump
()];
...
...
@@ -870,10 +855,6 @@
if
(
type
===
0
)
{
this
.
currentBlock
.
playProFect
();
}
if
(
type
!=
3
)
{
this
.
_playerShadow
.
visible
=
true
;
}
this
.
_playerShadow
.
y
=
this
.
player
.
y
+
props
.
playerShadowOffset
;
this
.
player
.
playLand
(
type
,
this
.
currentBlock
.
dir
);
this
.
currentBlock
.
stop
();
this
.
scoreChange
(
type
);
...
...
@@ -957,6 +938,7 @@
};
return
GameView
;
}(
engine
.
Container
));
//# sourceMappingURL=GameView.js.map
var
JumpHigh
=
(
function
(
_super
)
{
tslib
.
__extends
(
JumpHigh
,
_super
);
...
...
src/custom/jump-high-3/debug/main.js.map
View file @
5c486690
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 @
5c486690
...
...
@@ -274,30 +274,13 @@
}
},
"assets"
:
[
{
"name"
:
"跳跃提示背景"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/93646ba4e8e57adc64350c7ef78a9bff1f8c1aa9.png"
,
"uuid"
:
"ff98fa3d-f37d-4be4-aa4f-0f1322cbd676"
,
"ext"
:
".png"
},
{
"name"
:
"完美方块素材"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/e2150383e8391a2972bc43fd888e4c1250e1933a.svga"
,
"uuid"
:
"7499df87-4155-406b-8c2b-fea972719f39"
,
"ext"
:
".svga"
},
{
"name"
:
"方块阴影"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/c8ba94dcc9d10d4e0469ce79caed4e767b64f7e2.png"
,
"uuid"
:
"c0d03a20-24aa-4886-b83b-9c1149591921"
,
"ext"
:
".png"
},
{
"name"
:
"玩家阴影"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/165612a992e4b469052d9becf1120670e7b0a307.png"
,
"uuid"
:
"b4c18858-c43d-49a0-99d1-7b48fd2f24ba"
,
"ext"
:
".png"
},
{
"name"
:
"背景图"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/c90e6bc6718e4cc83d30bf2ce8b9f80a909adbee.jpg"
,
...
...
src/custom/jump-high-3/src/game/GameView.ts
View file @
5c486690
...
...
@@ -42,8 +42,6 @@ export default class GameView extends engine.Container {
_pos
;
_score
;
_remainToShowGoldBag
;
_blockShadow
_playerShadow
lastLandType
;
scoreAddTips
...
...
@@ -79,14 +77,6 @@ export default class GameView extends engine.Container {
const
base
=
this
.
base
=
new
Base
();
frontContainer
.
addChild
(
base
);
base
.
setup
();
let
blockShadow
=
this
.
_blockShadow
=
new
engine
.
Image
(
getTextureByName
(
'方块阴影'
));
blockShadow
.
anchorX
=
blockShadow
.
width
/
2
;
blockShadow
.
anchorY
=
blockShadow
.
height
/
2
;
blockShadow
.
x
=
-
(
blockShadow
.
width
-
base
.
width
)
/
2
;
blockShadow
.
y
=
props
.
blockShadowOffset
;
base
.
addChild
(
blockShadow
);
const
blockContainer
=
this
.
blockContainer
=
new
engine
.
Container
();
...
...
@@ -100,13 +90,6 @@ export default class GameView extends engine.Container {
player
.
addEventListener
(
'jump-on-top'
,
this
.
onPlayerJumpOnTop
,
this
);
let
playerShadow
=
this
.
_playerShadow
=
new
engine
.
Image
(
getTextureByName
(
'玩家阴影'
));
playerShadow
.
anchorX
=
playerShadow
.
width
/
2
;
playerShadow
.
anchorY
=
playerShadow
.
height
/
2
;
//playerShadow.x = frontContainer.width / 2;
playerShadow
.
x
=
this
.
player
.
x
-
playerShadow
.
width
/
2
;
let
scoreAddTipsContainer
=
this
.
scoreAddTipsContainer
=
new
engine
.
Container
();
scoreAddTipsContainer
.
width
=
750
;
scoreAddTipsContainer
.
anchorX
=
scoreAddTipsContainer
.
width
/
2
;
...
...
@@ -123,7 +106,7 @@ export default class GameView extends engine.Container {
scoreAddTips
.
x
=
this
.
player
.
x
-
scoreAddTips
.
width
/
2
;
scoreAddTipsContainer
.
addChild
(
scoreAddTips
);
frontContainer
.
addChild
(
playerShadow
);
frontContainer
.
addChild
(
player
);
...
...
@@ -198,8 +181,6 @@ export default class GameView extends engine.Container {
}
async
start
(
revive
=
false
)
{
this
.
_playerShadow
.
y
=
this
.
player
.
y
+
props
.
playerShadowOffset
;
this
.
scoreAddTipsContainer
.
y
=
this
.
player
.
y
+
props
.
scoreAddTipsOffset
;
//this.setScoreText("+100")
if
(
!
revive
)
{
...
...
@@ -369,7 +350,6 @@ export default class GameView extends engine.Container {
clearInterval
(
this
.
timer
);
this
.
currentBlock
.
playHit
();
this
.
_playerShadow
.
visible
=
false
;
// this.currentBlock.stop();
// this.playHitEffect(dir);
await
this
.
player
.
hitAway
(
dir
);
...
...
@@ -384,7 +364,6 @@ export default class GameView extends engine.Container {
if
(
!
this
.
_touchEnabled
)
{
return
;
}
this
.
_playerShadow
.
visible
=
false
;
this
.
_touchEnabled
=
false
;
this
.
playOpenGoldBag
();
const
result
:
any
=
await
this
.
player
.
jump
();
...
...
@@ -410,9 +389,8 @@ export default class GameView extends engine.Container {
this
.
currentBlock
.
playProFect
();
}
if
(
type
!=
3
){
this
.
_playerShadow
.
visible
=
true
;
}
this
.
_playerShadow
.
y
=
this
.
player
.
y
+
props
.
playerShadowOffset
;
this
.
player
.
playLand
(
type
,
this
.
currentBlock
.
dir
);
this
.
currentBlock
.
stop
();
...
...
@@ -425,9 +403,6 @@ export default class GameView extends engine.Container {
});
this
.
addBlock
();
// this.frontContainer.addChild(this._playerShadow);
//this._playerShadow.y=this.player.y+props.playerShadowOffset;
}
this
.
_touchEnabled
=
true
;
}
...
...
src/custom/jump-high-3/src/game/Player.ts
View file @
5c486690
...
...
@@ -27,7 +27,6 @@ export default class Player extends engine.Container {
private
aboveBlock
;
private
_aniName
;
playerShadow
;
private
_currentAni
:
svga
.
Svga
;
private
_prefectLandCounting
;
...
...
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