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.