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.

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

import { controlSystem, debugToggleSystem, showShapesSystem, reverseJointMotorsSystem } from './systems/control';
import { cameraFollowSystem } from './systems/camera';

// The 3D world itself needs no wiring: a scene carrying 3D components gets it.
addSystemToSchedule(Schedule.Startup, showShapesSystem);
addSystemToSchedule(Schedule.Update, controlSystem);
addSystemToSchedule(Schedule.Update, debugToggleSystem);
addSystemToSchedule(Schedule.Update, cameraFollowSystem);

addSystemToSchedule(Schedule.Update, reverseJointMotorsSystem);