feat(docs): 添加中英文国际化支持

This commit is contained in:
yhh
2025-12-03 22:48:22 +08:00
parent 63f006ab62
commit dd1ae97de7
13 changed files with 1638 additions and 196 deletions

View File

@@ -81,6 +81,17 @@ player.addComponent(new Position());
player.addComponent(new Velocity());
Core.setScene(scene);
// 游戏循环
let lastTime = 0;
function gameLoop(currentTime: number) {
const deltaTime = (currentTime - lastTime) / 1000;
lastTime = currentTime;
Core.update(deltaTime);
requestAnimationFrame(gameLoop);
}
requestAnimationFrame(gameLoop);
```
## 模块