eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

官方文档 lottie 示例代码问题 #32

Closed cklwblove closed 3 years ago

cklwblove commented 3 years ago

在官方文档 动画-lottie章节中,示例代码有些问题

import { Game, GameObject, resource } from '@eva/eva.js'
+ import { RendererSystem } from '@eva/plugin-renderer'
import { LottieSystem, Lottie } from '@eva/plugin-renderer-lottie'

const game = new Game({
  systems: [
-    new RenderSystem({
+   new RendererSystem({
      canvas: document.querySelector('#canvas'),
      width: 750,
      height: 1624
    }),
    new LottieSystem()
  ],
  autoStart: true,
  frameRate: 60
})
......
fanmingfei commented 3 years ago

感谢提出问题,已解决 image