Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
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
王剑峰
game2048
Commits
314838c8
Commit
314838c8
authored
May 14, 2020
by
huangwenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化动效
parent
37955550
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
PlayScene.ts
src/scenes/playScene/PlayScene.ts
+12
-12
No files found.
src/scenes/playScene/PlayScene.ts
View file @
314838c8
...
@@ -1335,8 +1335,8 @@ export class PlayScene extends Scene {
...
@@ -1335,8 +1335,8 @@ export class PlayScene extends Scene {
Tween
.
get
(
clone
)
Tween
.
get
(
clone
)
.
set
({
scaleX
:
1
,
scaleY
:
1
,
anchorX
:
75
,
anchorY
:
75
})
.
set
({
scaleX
:
1
,
scaleY
:
1
,
anchorX
:
75
,
anchorY
:
75
})
.
to
({
scaleX
:
0.3
,
scaleY
:
0.3
},
100
)
.
to
({
scaleX
:
0.3
,
scaleY
:
0.3
},
100
)
.
to
({
scaleX
:
1.3
,
scaleY
:
1.3
},
30
0
)
.
to
({
scaleX
:
1.3
,
scaleY
:
1.3
},
15
0
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
1
5
0
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
1
0
0
)
arr
[
i
-
1
]
*=
2
arr
[
i
-
1
]
*=
2
arr
.
splice
(
i
,
1
)
arr
.
splice
(
i
,
1
)
...
@@ -1358,7 +1358,7 @@ export class PlayScene extends Scene {
...
@@ -1358,7 +1358,7 @@ export class PlayScene extends Scene {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
removeChild
(
mp
)
this
.
removeChild
(
mp
)
},
10
00
);
},
8
00
);
}
}
})
})
...
@@ -1387,7 +1387,7 @@ export class PlayScene extends Scene {
...
@@ -1387,7 +1387,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1405,7 +1405,7 @@ export class PlayScene extends Scene {
...
@@ -1405,7 +1405,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1434,7 +1434,7 @@ export class PlayScene extends Scene {
...
@@ -1434,7 +1434,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1452,7 +1452,7 @@ export class PlayScene extends Scene {
...
@@ -1452,7 +1452,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1481,7 +1481,7 @@ export class PlayScene extends Scene {
...
@@ -1481,7 +1481,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1499,7 +1499,7 @@ export class PlayScene extends Scene {
...
@@ -1499,7 +1499,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1528,7 +1528,7 @@ export class PlayScene extends Scene {
...
@@ -1528,7 +1528,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1546,7 +1546,7 @@ export class PlayScene extends Scene {
...
@@ -1546,7 +1546,7 @@ export class PlayScene extends Scene {
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targetx
=
this
.
containerPool
[
x
][
y
].
x
+
ox
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
let
targety
=
this
.
containerPool
[
x
][
y
].
y
+
oy
Tween
.
get
(
origin
)
Tween
.
get
(
origin
)
.
to
({
x
:
targetx
,
y
:
targety
},
15
0
)
.
to
({
x
:
targetx
,
y
:
targety
},
9
0
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
removeChild
(
origin
)
this
.
removeChild
(
origin
)
})
})
...
@@ -1562,7 +1562,7 @@ export class PlayScene extends Scene {
...
@@ -1562,7 +1562,7 @@ export class PlayScene extends Scene {
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
r
()
r
()
},
12
0
);
},
6
0
);
})
})
}
}
...
...
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