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
import type { Entity } from 'esengine';
// Every control the systems talk to, looked up once by the name it carries in
// the scene. A null here means the scene stopped carrying that entity, which is
// the only way this demo can break.
export const ids: Record<string, Entity | null> = {};
export const state = {
wired: false,
clicks: 0,
paused: false,
progressT: 0,
progressDir: 1,
};