Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
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-engine
Commits
0b317c13
Commit
0b317c13
authored
May 18, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
飞入飞出增加inPos参数,用来指示坐标
parent
fdd5f93c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
view-effects.ts
src/zeroing/game-warpper/view-effects.ts
+4
-4
No files found.
src/zeroing/game-warpper/view-effects.ts
View file @
0b317c13
...
@@ -76,10 +76,10 @@ const effects = {
...
@@ -76,10 +76,10 @@ const effects = {
}
}
},
},
flew
(
params
,
mutex
,
lastView
,
view
,
container
,
callback
)
{
flew
(
params
,
mutex
,
lastView
,
view
,
container
,
callback
)
{
const
{
duration
=
300
,
direction
=
'top'
,
ease
=
'backOut'
}
=
params
;
const
{
duration
=
300
,
direction
=
'top'
,
ease
=
'backOut'
,
inPos
:
inPosInput
}
=
params
;
const
{
stage
:
{
width
,
height
}}
=
gameStage
;
const
{
stage
:
{
width
,
height
}}
=
gameStage
;
let
outPos
:
any
=
{}
;
let
outPos
:
any
;
switch
(
direction
)
{
switch
(
direction
)
{
case
'left'
:
case
'left'
:
outPos
.
x
=
-
width
;
outPos
.
x
=
-
width
;
...
@@ -128,8 +128,8 @@ const effects = {
...
@@ -128,8 +128,8 @@ const effects = {
function
flewIn
(
callback
)
{
function
flewIn
(
callback
)
{
if
(
view
)
{
if
(
view
)
{
let
inPos
:
any
=
{
let
inPos
:
any
=
{
x
:
view
.
x
,
x
:
inPosInput
&&
inPosInput
.
hasOwnProperty
(
'x'
)
?
inPosInput
.
x
:
view
.
x
,
y
:
view
.
y
,
y
:
inPosInput
&&
inPosInput
.
hasOwnProperty
(
'y'
)
?
inPosInput
.
y
:
view
.
y
,
};
};
view
.
visible
=
true
;
view
.
visible
=
true
;
...
...
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