# コーディングエージェント向け Bloom Engine

Bloom は TypeScript のゲームエンジンです。ネイティブ版のコンパイルには Perry、Web 版には WebAssembly を使用します。

エンジンのライセンス · [MIT](https://github.com/Bloom-Engine/engine/blob/main/LICENSE)

## 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
```

## プラットフォームとグラフィックス API

**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 モジュール · 0.4.19

**[`core`](https://bloomengine.dev/docs#core)**
 ウィンドウ生成、ゲームループ、入力処理、タイミング制御、フレーム制御。

**[`shapes`](https://bloomengine.dev/docs#shapes)**
 2D 図形描画 — 線、矩形、円、ポリゴン — に加えて衝突判定。

**[`textures`](https://bloomengine.dev/docs#textures)**
 画像読み込み、テクスチャ管理、スプライトバッチング、テクスチャへのレンダリング。

**[`text`](https://bloomengine.dev/docs#text)**
 TTF および OTF フォントの読み込み、テキストレンダリング、計測。

**[`audio`](https://bloomengine.dev/docs#audio)**
 効果音、音楽ストリーミング、3D ポジショナルオーディオ、WAV / OGG / MP3 対応。

**[`models`](https://bloomengine.dev/docs#models)**
 glTF 2.0 読み込み、GPU スケルタルアニメーション、PBR マテリアル、メッシュプリミティブ。

**[`math`](https://bloomengine.dev/docs#math)**
 ベクトル、行列、クォータニオン、イージング関数、乱数生成。

**[`physics`](https://bloomengine.dev/docs#physics)**
 Jolt によるリジッドボディとソフトボディ、キャラクターコントローラー、車両、レイキャスト、コンストレイント。

**[`scene`](https://bloomengine.dev/docs#scene)**
 保持モードのシーングラフ — トランスフォーム、可視性、シャドウ、マテリアルバインディング。

**[`mobile`](https://bloomengine.dev/docs#mobile)**
 仮想コントロール、セーフエリア、タッチ入力ヘルパー。

**[`world`](https://bloomengine.dev/docs#world)**
 バージョン管理されたワールドの読み込み、検証、プレハブ、ランタイム生成。

**[`vfx`](https://bloomengine.dev/docs#vfx)**
 GPU パーティクルシステム、エミッター、デカール。

**[`quality`](https://bloomengine.dev/docs#quality)**
 決定論的な品質テスト、キャプチャ、テレメトリ。

## ドキュメント索引

[ドキュメント](https://bloomengine.dev/docs) · [ゲームテンプレート](https://bloomengine.dev/ja/templates) · [llms-full.txt](https://bloomengine.dev/llms-full.txt)
