Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zjzy_client_game
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
王勇霞
zjzy_client_game
Commits
dcb878ae
Commit
dcb878ae
authored
Mar 14, 2023
by
王勇霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
速度调整
parent
71239089
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
ResJson.ts
src/ResJson.ts
+1
-1
GameScene.ts
src/scenes/GameScene.ts
+0
-2
Role.ts
src/scenes/components/Role.ts
+4
-4
No files found.
src/ResJson.ts
View file @
dcb878ae
...
@@ -733,5 +733,5 @@ export const ResJson = {
...
@@ -733,5 +733,5 @@ export const ResJson = {
"name"
:
"svga"
"name"
:
"svga"
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16787
10002
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16787
72466
/resource/"
}
}
\ No newline at end of file
src/scenes/GameScene.ts
View file @
dcb878ae
...
@@ -177,7 +177,6 @@ export class GameScene extends Scene {
...
@@ -177,7 +177,6 @@ export class GameScene extends Scene {
this
.
addRole
()
this
.
addRole
()
// 开始循环添加
// 开始循环添加
for
(
let
i
=
0
;
i
<
this
.
startLen
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
startLen
;
i
++
)
{
this
.
createCloudItem
(
stageHeight
-
(
500
+
150
*
i
),
i
+
1
,
i
%
2
==
0
?
'left'
:
'right'
);
this
.
createCloudItem
(
stageHeight
-
(
500
+
150
*
i
),
i
+
1
,
i
%
2
==
0
?
'left'
:
'right'
);
}
}
...
@@ -293,7 +292,6 @@ export class GameScene extends Scene {
...
@@ -293,7 +292,6 @@ export class GameScene extends Scene {
})
})
if
(
success
)
{
if
(
success
)
{
GDispatcher
.
dispatchEvent
(
"openGameEnd"
,
{
GDispatcher
.
dispatchEvent
(
"openGameEnd"
,
{
isFillUp
:
data
.
point
?
true
:
false
,
point
:
data
.
point
||
0
point
:
data
.
point
||
0
});
});
}
else
{
}
else
{
...
...
src/scenes/components/Role.ts
View file @
dcb878ae
...
@@ -53,7 +53,7 @@ export default class Role extends FYGE.Container {
...
@@ -53,7 +53,7 @@ export default class Role extends FYGE.Container {
FYGE
.
Tween
.
get
(
this
.
position
).
to
({
FYGE
.
Tween
.
get
(
this
.
position
).
to
({
x
:
this
.
item
.
position
.
x
+
20
,
x
:
this
.
item
.
position
.
x
+
20
,
y
:
this
.
item
.
position
.
y
-
110
y
:
this
.
item
.
position
.
y
-
110
},
50
0
,
FYGE
.
Ease
.
quadInOut
)
},
35
0
,
FYGE
.
Ease
.
quadInOut
)
.
call
(()
=>
{
.
call
(()
=>
{
// console.log("播放完成")
// console.log("播放完成")
callback
&&
callback
(
this
.
item
)
callback
&&
callback
(
this
.
item
)
...
@@ -82,7 +82,7 @@ export default class Role extends FYGE.Container {
...
@@ -82,7 +82,7 @@ export default class Role extends FYGE.Container {
FYGE
.
Tween
.
get
(
this
.
position
).
to
({
FYGE
.
Tween
.
get
(
this
.
position
).
to
({
x
:
this
.
item
.
position
.
x
+
20
,
x
:
this
.
item
.
position
.
x
+
20
,
y
:
this
.
item
.
position
.
y
-
110
y
:
this
.
item
.
position
.
y
-
110
},
50
0
,
FYGE
.
Ease
.
quadInOut
)
},
35
0
,
FYGE
.
Ease
.
quadInOut
)
.
call
(()
=>
{
.
call
(()
=>
{
console
.
log
(
"播放完成"
)
console
.
log
(
"播放完成"
)
callback
&&
callback
(
this
.
item
)
callback
&&
callback
(
this
.
item
)
...
@@ -101,7 +101,7 @@ export default class Role extends FYGE.Container {
...
@@ -101,7 +101,7 @@ export default class Role extends FYGE.Container {
// 人物自由落地
// 人物自由落地
onFreeFall
(
position
,
data
,
callback
)
{
onFreeFall
(
position
,
data
,
callback
)
{
this
.
item
=
data
.
item
this
.
item
=
data
.
item
this
.
position
.
set
(
position
.
x
,
position
.
y
-
10
00
)
this
.
position
.
set
(
position
.
x
,
position
.
y
-
8
00
)
this
.
downSvga
.
visible
=
false
this
.
downSvga
.
visible
=
false
this
.
jumpSvga
.
visible
=
true
,
this
.
jumpSvga
.
visible
=
true
,
this
.
jumpSvga
.
startAniRange
(
1
,
undefined
,
1
)
this
.
jumpSvga
.
startAniRange
(
1
,
undefined
,
1
)
...
@@ -112,7 +112,7 @@ export default class Role extends FYGE.Container {
...
@@ -112,7 +112,7 @@ export default class Role extends FYGE.Container {
}).
to
({
}).
to
({
x
:
position
.
x
+
20
,
x
:
position
.
x
+
20
,
y
:
position
.
y
-
110
y
:
position
.
y
-
110
},
10
00
,
FYGE
.
Ease
.
quadInOut
)
},
5
00
,
FYGE
.
Ease
.
quadInOut
)
.
call
(()
=>
{
.
call
(()
=>
{
console
.
log
(
"播放完成"
)
console
.
log
(
"播放完成"
)
callback
&&
callback
(
this
.
item
)
callback
&&
callback
(
this
.
item
)
...
...
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