Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
esengine committed Nov 25, 2020
1 parent 1e8d217 commit 8b76eb3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ let core = new es.Core(768, 1366);
2. 派发核心事件

```typescript
// 在监听每帧更新时间处执行 egret
// 在监听每帧更新时间处执行 egret写法:
es.Time.update(egret.getTimer());
// 在监听每帧更新时间处执行 laya写法:
// laya 使用 Laya.timer.frameLoop 进行侦听
// es.Time.update(Laya.systemTimer.currTimer);
// 必须派发该事件 否则核心内所有更新事件将不会执行
es.Core.emitter.emit(es.CoreEvents.FrameUpdated);
```
Expand Down Expand Up @@ -134,6 +137,13 @@ class MainScene extends es.Scene {
es.Core.scene = new MainScene();
```

### 示例地址

- [egret]: https://github.com/esengine/ecs-egret-demo

- [laya]: https://github.com/esengine/ecs-laya-demo



## 版本计划功能

Expand Down

0 comments on commit 8b76eb3

Please sign in to comment.