Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

401 B
Raw Blame
// Gesture handlers write here; the ship and HUD systems read it. Keeps the
// GestureDetector callbacks decoupled from the ECS world.
export const gestureState = {
    /** Pending swipe displacement in world units; consumed by the ship system. */
    stepX: 0,
    stepY: 0,
    /** Ship scale, driven by pinch. */
    scale: 1,
    /** Last recognized gesture, for the pad HUD. */
    last: '-',
};