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 { defineComponent } from 'esengine';
// The project's declaration entry (src/components.ts): user component/tag
// definitions only — no systems, no createWebApp. The editor extracts schemas
// from here so the inspector knows their fields without running project code.
// (StateMachineAgent / NavAgent are engine built-ins, so they aren't declared.)
/** Marks the WASD-controlled player and carries its move speed. */
export const PlayerControl = defineComponent('PlayerControl', {
speed: 240,
});