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.

449 B
Raw Blame
import { addSystemToSchedule, Schedule } from 'esengine';

import './components';
import { moveSystem } from './systems/move';
import { followSystem } from './systems/follow';
import { talkSystem } from './systems/talk';

addSystemToSchedule(Schedule.Update, moveSystem);
addSystemToSchedule(Schedule.Update, talkSystem);
// After the hero has moved, or the camera trails a frame behind them.
addSystemToSchedule(Schedule.PostUpdate, followSystem);