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 { addSystemToSchedule, Schedule } from 'esengine';
import { chaseSystem, faceTargetSystem } from './enemy';
import { cameraFollowSystem, controlSystem, gateSystem, showWorldSystem } from './player';
// Only project systems are registered here. Perception, the navmesh bake and the
// agent follow are the engine's own AI plugins — the scene authors a NavVolume, a
// NavLink and a NavObstacle, and nothing in code has to bake or join anything.
addSystemToSchedule(Schedule.Startup, showWorldSystem);
addSystemToSchedule(Schedule.Update, controlSystem);
addSystemToSchedule(Schedule.Update, gateSystem);
addSystemToSchedule(Schedule.Update, chaseSystem);
addSystemToSchedule(Schedule.Update, faceTargetSystem);
addSystemToSchedule(Schedule.Update, cameraFollowSystem);