Commit 0c911729 authored by Edwise's avatar Edwise 🍷

1231234

parent a63c385f
......@@ -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生成")
......@@ -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() {
......
......@@ -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="
}
}
}
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