From f47b2e3f68e69238b731d6183e739805db20ae5b Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 14 Feb 2021 20:25:55 +0100 Subject: Control a ship that can fire missiles --- src/main.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main.ts (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..53bc487 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,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) -- cgit v1.2.3