Commit ceab59e4 authored by 邱旭's avatar 邱旭

m

parent 665d2d24
......@@ -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">
......
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment