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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// 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: '-',
};