# Bloom Engine สำหรับเอเจนต์เขียนโค้ด

Bloom คือเอนจินเกม TypeScript โดยใช้ Perry คอมไพล์เกมเนทีฟ และใช้ 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)**
 การโหลดรูปภาพ, การจัดการเท็กซ์เจอร์, การทำสไปรต์แบตช์ และ render-to-texture

**[`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)**
 เวกเตอร์, เมทริกซ์, ควอเทอร์เนียน, ฟังก์ชัน easing และการสุ่มตัวเลข

**[`physics`](https://bloomengine.dev/docs#physics)**
 วัตถุแข็งและอ่อนที่ขับเคลื่อนด้วย Jolt, ตัวควบคุมตัวละคร, ยานพาหนะ, raycast และข้อจำกัด

**[`scene`](https://bloomengine.dev/docs#scene)**
 ซีนกราฟแบบ retained-mode — การแปลง, การมองเห็น, เงา และการผูกวัสดุ

**[`mobile`](https://bloomengine.dev/docs#mobile)**
 ตัวควบคุมเสมือน พื้นที่ปลอดภัย และตัวช่วยอินพุตแบบสัมผัส

**[`world`](https://bloomengine.dev/docs#world)**
 การโหลดและตรวจสอบเวิลด์แบบมีเวอร์ชัน prefab และการสร้างอินสแตนซ์ขณะรัน

**[`vfx`](https://bloomengine.dev/docs#vfx)**
 ระบบอนุภาค GPU ตัวปล่อย และ decal

**[`quality`](https://bloomengine.dev/docs#quality)**
 การทดสอบคุณภาพแบบกำหนดผลได้ การจับภาพ และเทเลเมทรี

## ดัชนีเอกสาร

[เอกสาร](https://bloomengine.dev/docs) · [เทมเพลตเกม](https://bloomengine.dev/th/templates) · [llms-full.txt](https://bloomengine.dev/llms-full.txt)
