Build a game for Apple Watch

Use the Digital Crown to move a marker. The watch supplies each frame through runGame.

main.ts
import { initWindow, runGame, clearBackground, Colors } from "@bloomengine/engine";
import { getCrownRotation, getScreenWidth } from "@bloomengine/engine/core";
import { drawCircle } from "@bloomengine/engine/shapes";

initWindow(180, 180, "Bloom");
let x = 90;
runGame(() => {
  x = Math.max(8, Math.min(getScreenWidth() - 8, x + getCrownRotation() * 20));
  clearBackground(Colors.BLACK);
  drawCircle(x, 90, 8, Colors.GREEN);
});

Where this stands today

On watchOS, Canvas draws 2D and SceneKit draws 3D. Jolt physics and the desktop deferred renderer are unavailable.

Questions and answers

Can I try a shipped game on my watch?

Bloom Jump Watch has its own App Store listing.

Sources