Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
王剑峰
babycare_xiaoxiao
Commits
ceab59e4
Commit
ceab59e4
authored
Feb 20, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
665d2d24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
workspace.xml
.idea/workspace.xml
+12
-11
Element.ts
src/something/class/Element.ts
+8
-8
No files found.
.idea/workspace.xml
View file @
ceab59e4
...
...
@@ -2,14 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/StartPanel/startNum0.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/class/Element.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/class/Element.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -69,7 +62,7 @@
<recent
name=
"$PROJECT_DIR$/lotties"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"npm.
buildTS
"
>
<component
name=
"RunManager"
selected=
"npm.
dev
"
>
<configuration
name=
"build"
type=
"js.build_tools.npm"
temporary=
"true"
nameIsGenerated=
"true"
>
<package-json
value=
"$PROJECT_DIR$/package.json"
/>
<command
value=
"run"
/>
...
...
@@ -122,10 +115,10 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.copyJs"
/>
</list>
</recent_temporary>
...
...
@@ -141,7 +134,8 @@
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22073000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"1777000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -311,7 +305,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613727027414
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"25"
/>
<task
id=
"LOCAL-00025"
summary=
"m"
>
<created>
1613730899385
</created>
<option
name=
"number"
value=
"00025"
/>
<option
name=
"presentableId"
value=
"LOCAL-00025"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613730899385
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"26"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
src/something/class/Element.ts
View file @
ceab59e4
...
...
@@ -157,7 +157,9 @@ export class Element extends FYGE.Container {
}
moveCount
=
0
;
// 移动计数
moveDir
=
1
;
// 移动计数
moveDir
=
1
;
// 移动方向
moveDis
=
1
;
// 移动距离
moveMaxDis
=
4
;
// 最大移动距离
moveFrame
=
0
;
// 移动了几帧
moveFrameSign
=
6
;
// 要几帧
...
...
@@ -171,14 +173,12 @@ export class Element extends FYGE.Container {
this
.
moveFrame
++
;
if
(
this
.
moveFrame
>
this
.
moveFrameSign
)
{
this
.
moveFrame
=
0
;
this
.
moveCount
+=
this
.
moveDir
;
this
.
moveCount
+=
this
.
moveDir
*
this
.
moveDis
;
}
if
(
this
.
_effectType
==
EffectType
.
HORIZONTAL
)
{
this
.
x
+=
this
.
moveDir
/
this
.
moveFrameSign
;
}
else
if
(
this
.
_effectType
==
EffectType
.
VERTICAL
)
{
this
.
y
+=
this
.
moveDir
/
this
.
moveFrameSign
;
}
if
(
Math
.
abs
(
this
.
moveCount
)
>=
3
)
{
const
xy
=
(
this
.
_effectType
==
EffectType
.
HORIZONTAL
)
?
"x"
:
"y"
;
this
[
xy
]
+=
this
.
moveDir
*
this
.
moveDis
/
this
.
moveFrameSign
;
if
(
Math
.
abs
(
this
.
moveCount
)
>=
this
.
moveMaxDis
)
{
this
.
moveDir
*=
-
1
;
}
}
...
...
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