Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
wildfirecode13
new_taobao
Commits
0c911729
Commit
0c911729
authored
Sep 16, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1231234
parent
a63c385f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mergeJs.js
project/src/canvas/game/scripts/mergeJs.js
+1
-1
StartScene.ts
project/src/canvas/game/src/scenes/StartScene.ts
+1
-0
package-lock.json
taobao_mini/client/package-lock.json
+5
-0
No files found.
project/src/canvas/game/scripts/mergeJs.js
View file @
0c911729
...
...
@@ -12,6 +12,6 @@ if(!fs.existsSync(endPath))
}
fs
.
writeFileSync
(
endPath
+
"output.js"
,
'import * as FYGE from "fyge-tbmini";
\
n'
+
//
'import * as SvgaParser from "svga-parser";\n' +
'import * as SvgaParser from "svga-parser";
\
n'
+
fs
.
readFileSync
(
"./output.js"
));
console
.
log
(
"js生成"
)
project/src/canvas/game/src/scenes/StartScene.ts
View file @
0c911729
...
...
@@ -8,6 +8,7 @@ export class StartScene extends Scene {
var
canvas
:
FYGE
.
Container
=
new
FYGE
.
Container
();
canvas
.
position
.
set
(
0
,
0
);
this
.
addChild
(
canvas
);
SvgaParser
.
loadSvga
(
"//yun.duiba.com.cn/spark/assets/yuyu1.6473bb2ef640b556f35096428847216e72499d90.svga"
,(
e
)
=>
{
this
.
addChild
(
new
FYGE
.
MovieClip
(
e
))})
}
start
()
{
...
...
taobao_mini/client/package-lock.json
View file @
0c911729
...
...
@@ -7,6 +7,11 @@
"version"
:
"1.4.2"
,
"resolved"
:
"https://registry.npm.taobao.org/@tbmp/mp-cloud-sdk/download/@tbmp/mp-cloud-sdk-1.4.2.tgz"
,
"integrity"
:
"sha1-/49BtdDaNJ6H9+f9DDBMPgt/BbQ="
},
"fyge-tbmini"
:
{
"version"
:
"1.3.7"
,
"resolved"
:
"https://registry.npm.taobao.org/fyge-tbmini/download/fyge-tbmini-1.3.7.tgz"
,
"integrity"
:
"sha1-zp/KWSj+rRCGDOTrfo0BQxQxYqQ="
}
}
}
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