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.

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

export const Mover = defineComponent('Mover', {
    speed: 100,
    directionX: 1,
    directionY: 0,
});

export const Lifetime = defineComponent('Lifetime', {
    remaining: 5,
});

export const Spawner = defineComponent('Spawner', {
    interval: 0.8,
    timer: 0,
});

export const Bouncer = defineTag('Bouncer');