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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
export const COIN_SPOTS: ReadonlyArray<{ x: number; y: number }> = [
{ x: -320, y: 40 },
{ x: -160, y: -120 },
{ x: 0, y: 60 },
{ x: 160, y: -120 },
{ x: 320, y: 40 },
{ x: 0, y: -220 },
];
export const game = {
score: 0,
collected: new Set<number>(),
altColor: false,
status: 'Move with the arrow keys, collect coins, then Save.',
built: false,
};