blob: 53bc4875eb1af5e7dd3bb25d5e03f70e5949751a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import * as Scene from 'view/scene'
let scene: Scene.State = Scene.init()
function loop(timestamp: number) {
Scene.update(scene, timestamp)
Scene.view(scene)
window.requestAnimationFrame(loop)
}
window.requestAnimationFrame(loop)
|