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);
}); Stato attuale
Su watchOS Canvas disegna in 2D e SceneKit in 3D. La fisica Jolt e il renderer differito desktop non sono disponibili.
Domande e risposte
Posso provare un gioco pubblicato sul mio orologio?
Bloom Jump Watch ha una propria scheda sull’App Store.