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.

523 B
Raw Blame
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 / TimelinePlayer are engine built-ins, so they aren't
// declared.)

/** Marks the arrow/WASD-controlled hero and carries its move speed. */
export const HeroControl = defineComponent('HeroControl', {
    speed: 260,
});