# Bloom Engine for coding agents

Bloom is a TypeScript game engine. Perry compiles native builds. The web target uses WebAssembly.

Engine licence · [MIT](https://github.com/Bloom-Engine/engine/blob/main/LICENSE)

## Installation on macOS

Node.js · Rust · Xcode Command Line Tools

```
npm init -y
npm install -D @perryts/perry@0.5.1665
npm install @bloomengine/engine@0.4.19
npm pkg set 'perry.allow.nativeLibrary[0]=@bloomengine/*'
```

[main.ts](https://bloomengine.dev/docs#quick-start)

```
npx perry compile main.ts -o game && ./game
```

## Platforms and graphics APIs

**macOS**
 Metal

**Windows**
 DirectX 12

**Linux**
 Vulkan / OpenGL

**iOS**
 Metal

**tvOS**
 Metal

**watchOS**
 SwiftUI Canvas / SceneKit

**visionOS**
 Metal

**Android**
 Vulkan / OpenGL ES

**Web**
 WebGPU / WebGL

## API modules · 0.4.19

**[`core`](https://bloomengine.dev/docs#core)**
 Window creation, game loop, input handling, timing, and frame control.

**[`shapes`](https://bloomengine.dev/docs#shapes)**
 2D shape drawing — lines, rects, circles, polygons — plus collision detection.

**[`textures`](https://bloomengine.dev/docs#textures)**
 Image loading, texture management, sprite batching, and render-to-texture.

**[`text`](https://bloomengine.dev/docs#text)**
 TTF and OTF font loading, text rendering, and measurement.

**[`audio`](https://bloomengine.dev/docs#audio)**
 Sound effects, music streaming, 3D positional audio, WAV / OGG / MP3.

**[`models`](https://bloomengine.dev/docs#models)**
 glTF 2.0 loading, GPU skeletal animation, PBR materials, mesh primitives.

**[`math`](https://bloomengine.dev/docs#math)**
 Vectors, matrices, quaternions, easing functions, and random number generation.

**[`physics`](https://bloomengine.dev/docs#physics)**
 Jolt-powered rigid & soft bodies, character controllers, vehicles, raycasts, constraints.

**[`scene`](https://bloomengine.dev/docs#scene)**
 Retained-mode scene graph — transforms, visibility, shadows, material binding.

**[`mobile`](https://bloomengine.dev/docs#mobile)**
 Virtual controls, safe areas, and touch-input helpers.

**[`world`](https://bloomengine.dev/docs#world)**
 Versioned world loading, validation, prefabs, and runtime instantiation.

**[`vfx`](https://bloomengine.dev/docs#vfx)**
 GPU particle systems, emitters, and decals.

**[`quality`](https://bloomengine.dev/docs#quality)**
 Deterministic quality runs, captures, and telemetry.

## Documentation index

[Docs](https://bloomengine.dev/docs) · [Game templates](https://bloomengine.dev/templates) · [llms-full.txt](https://bloomengine.dev/llms-full.txt)
