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.

292 B
Raw Blame
import { defineComponent } from 'esengine';

export const Heart = defineComponent('Heart', {
    beatScale: 1.35,
});

export const Spark = defineComponent('Spark', {
    vx: 0,
    vy: 0,
});

export const Drifter = defineComponent('Drifter', {
    vy: -110,
    baseX: 0,
    phase: 0,
});