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.

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

import './components';
import { switchSystem } from './systems/switch';

console.log('[spine-demo] press 1-5 to switch: idle / walk / run / jump / shoot');
console.log('[spine-demo] press D for the spine scene diagnostics');

addSystemToSchedule(Schedule.Update, switchSystem);