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.

326 B
Raw Blame
import { defineComponent, defineTag } from 'esengine';

export const Wave = defineComponent('Wave', {
    amplitude: 20,
    frequency: 2,
    phase: 0,
});

export const Orbit = defineComponent('Orbit', {
    centerX: 0,
    centerY: 0,
    radius: 80,
    speed: 1,
    angle: 0,
});

export const Spin = defineTag('Spin');