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
import { defineComponent } from 'esengine';
// A tiny platformer character that walks + jumps on the tilemap's collidable
// tiles. Units are PIXELS: the scene runs pixel-space physics (a Canvas with
// pixelsPerUnit = 1), so the tilemap's per-tile colliders line up 1:1 with the
// character's collider.
export const Player = defineComponent('Player', {
speed: 170, // px/s horizontal
jumpForce: 420, // px/s launch velocity
});