Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-stydy
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
谌继荃
game-stydy
Commits
bd84de1f
Commit
bd84de1f
authored
Nov 30, 2021
by
谌继荃
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 随机打乱拼图数组
parent
6b040c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drag.ts
src/drag.ts
+2
-1
No files found.
src/drag.ts
View file @
bd84de1f
...
...
@@ -13,11 +13,12 @@ export const addDragDemo = (stage: FYGE.Stage) => {
let
countDownText
=
new
FYGE
.
TextField
();
stage
.
addChild
(
gameWrapper
);
// 优化
const
onShuffle
=
()
=>
{
shuffle
(
gamedata
);
// 随机到正确答案后应该再随机一次
if
(
equalTo
(
INIT_DATA
,
gamedata
))
{
shuffle
(
gamedata
);
onShuffle
(
);
}
};
...
...
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