# Créer un jeu pour Apple Watch

Déplacez un repère avec la Digital Crown. La montre fournit chaque image via 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);
});
```

## État actuel

Sous watchOS, Canvas dessine en 2D et SceneKit en 3D. La physique Jolt et le rendu différé de bureau sont indisponibles.

## Questions et réponses

### Puis-je essayer un jeu publié sur ma montre ?

Bloom Jump Watch possède sa propre fiche sur l’App Store.

## Sources

*   [watchOS](https://github.com/Bloom-Engine/engine/blob/main/docs/watchos-target.md)
*   [Bloom Jump Watch](https://apps.apple.com/us/app/bloom-jump-watch/id6779528549)
