[เปรียบเทียบเกมเอนจิน](https://bloomengine.dev/th/compare)

# นำเกมที่ใช้ Phaser ไปใช้บนมือถือ

หากต้องการคงโค้ด Phaser ให้ลองวิธีแพ็กด้วย Capacitor ตามเอกสารก่อน หากต้องการเรนเดอร์เนทีฟ ให้ประเมินการย้ายฉาก ฟิสิกส์ และอินพุตไปยัง Bloom[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")

ตรวจสอบล่าสุด 2 ธันวาคม 2569

| คุณสมบัติ | Bloom Engine | Phaser |
| --- | --- | --- |
| ภาษาที่ใช้เขียนเกม | TypeScript[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02") | JavaScript / TypeScript[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |
| สัญญาอนุญาตของเอนจิน | MIT[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02") | MIT[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |
| เวอร์ชันปัจจุบัน | 0.4.19[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "แหล่งข้อมูล 2 · ตรวจสอบล่าสุด 2026-12-02") | 4.2.1[\[10\]](https://www.phaser.io/download/phaser4 "แหล่งข้อมูล 10 · ตรวจสอบล่าสุด 2026-12-02") |
| ตัวแก้ไข | ตัวช่วย World Editor แยกต่างหาก[\[3\]](https://github.com/Bloom-Engine/editor#status "แหล่งข้อมูล 3 · ตรวจสอบล่าสุด 2026-12-02") | Phaser Editor v5 เป็นตัวเลือกเสริม เว็บไซต์ของเอดิเตอร์มีเดโมแชต AI[\[11\]](https://phaser.io/editor "แหล่งข้อมูล 11 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02") |
| เป้าหมายของเกม | macOS · Windows · Linux · iOS · tvOS · watchOS · visionOS · Android · Web[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02") | เบราว์เซอร์สำหรับเดสก์ท็อปและมือถือ[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |
| การเรนเดอร์ | wgpu · Metal · DX12 · Vulkan · OpenGL · WebGPU / WebGL · SwiftUI / SceneKit[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02") | WebGL / Canvas[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |
| ฟิสิกส์ | ใช้ Jolt บนแพลตฟอร์มต้นฉบับที่รองรับ สำหรับ watchOS จะใช้ระบบหลังที่ต่างกัน[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02") | Arcade / Matter.js[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |
| วิธีทำงานของเอเจนต์ | ไฟล์ TypeScript ที่ถูกคอมไพล์ด้วย Perry[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02") | npm create @phaserjs/game@latest · MCP[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02") |
| ราคา | เครื่องมือนี้มีราคาฟรีภายใต้ใบอนุญาตที่เผยแพร่[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02") | เอนจินใช้ฟรี เอดิเตอร์เสริมราคา US$12 ต่อเดือน มี MCP สำหรับเอเจนต์ภายนอก เครดิต AI บนบริการโฮสต์คิดแยก[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02") |

การทดลองของผู้เล่นที่เผยแพร่ไม่มีการรันสำหรับเครื่องมือนี้ [อ่านการทดลอง](https://bloomengine.dev/th/blog/one-racing-game-six-ways) · [โค้ดและบันทึก](https://github.com/Bloom-Engine/racer-experiment)

## ขยับสไปรต์

สไปรต์เคลื่อนไปทางขวา 120 หน่วยต่อวินาทีและวนกลับเมื่อถึง 640 [ดาวน์โหลด sprite.png](https://bloomengine.dev/compare/sprite.png)

### Bloom Engine

วาง sprite.png ข้างๆ ไฟล์ที่ทำงานแล้ว และเริ่มต้นการใช้งานจากที่นั่น ใช้เครื่องมือที่เผยแพร่ร่วมกับ Perry และ Rust[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "แหล่งข้อมูล 2 · ตรวจสอบล่าสุด 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "แหล่งข้อมูล 3 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02")

main.ts

```
import { initWindow, runGame, clearBackground, Colors } from "@bloomengine/engine";
import { loadTexture, drawTexture } from "@bloomengine/engine/textures";

initWindow(640, 360, "Bloom");
const sprite = loadTexture("sprite.png");
let x = 0;
runGame((dt) => {
  x = (x + 120 * dt) % 640;
  clearBackground(Colors.BLACK);
  drawTexture(sprite, Math.floor(x), 180, Colors.WHITE);
});
```

### Phaser

รันโมดูลในโปรเจกต์ Phaser โดยวาง sprite.png ในไดเรกทอรีสาธารณะ[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[7\]](https://phaser.io/phaser4 "แหล่งข้อมูล 7 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[9\]](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor "แหล่งข้อมูล 9 · ตรวจสอบล่าสุด 2026-12-02")

main.js

```
import Phaser from "phaser";

class GameScene extends Phaser.Scene {
  preload() {
    this.load.image("sprite", "sprite.png");
  }
  create() {
    this.sprite = this.add.image(0, 180, "sprite");
  }
  update(time, delta) {
    this.sprite.x = (this.sprite.x + 120 * delta / 1000) % 640;
  }
}
new Phaser.Game({ width: 640, height: 360, scene: GameScene });
```

## เลือก Bloom เมื่อ…

คุณต้องการให้เกมที่ใช้ TypeScript เดียวกัน ใช้การเรนเดอร์แบบ native บนมือถือ และรวมภาพพื้นที่กับโมเดล 3D[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "แหล่งข้อมูล 2 · ตรวจสอบล่าสุด 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "แหล่งข้อมูล 3 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02")

## เลือก Phaser เมื่อ…

คุณต้องการแผนผังชิ้นส่วน แรงดันของ Arcade หรือ Matter ฟิสิกส์ แบบจำลองฉาก และการจัดการแบบ 2D ที่มีภาพประกอบ[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[7\]](https://phaser.io/phaser4 "แหล่งข้อมูล 7 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[9\]](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor "แหล่งข้อมูล 9 · ตรวจสอบล่าสุด 2026-12-02")

## หมายเหตุการย้ายผ่าน

แพ็กเกมเดิมด้วย Capacitor แล้วทดสอบสัมผัส เสียง และการกลับเข้าแอปบนโทรศัพท์ หากจะประเมินการพอร์ตไป Bloom ให้สร้างฉากที่เล่นได้หนึ่งฉากด้วยเท็กซ์เจอร์และการชนแบบเดิม[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[7\]](https://phaser.io/phaser4 "แหล่งข้อมูล 7 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[9\]](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor "แหล่งข้อมูล 9 · ตรวจสอบล่าสุด 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")

## คำถามที่พบบ่อย

### สิ่งใดที่สามารถรักษาได้จากเกมที่ใช้ Phaser?

ภาพ ข้อมูล และกฎของ TypeScript ที่เป็นอิสระเป็นจุดเริ่มต้นที่ดี แต่ช่วงชีวิตของฉาก คำสั่งการวาด และฟิสิกส์ต้องถูกย้ายไปใช้[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[7\]](https://phaser.io/phaser4 "แหล่งข้อมูล 7 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[9\]](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor "แหล่งข้อมูล 9 · ตรวจสอบล่าสุด 2026-12-02")

### การใช้ Phaser มีค่าใช้จ่ายเท่าไร

เอนจินใช้ฟรี เอดิเตอร์เสริมราคา US$12 ต่อเดือน มี MCP สำหรับเอเจนต์ภายนอก เครดิต AI บนบริการโฮสต์คิดแยก[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")

### เมื่อเปลี่ยนไปใช้ Bloom ฉันสามารถใช้สิ่งใดได้บ้าง?

รักษาชิ้นส่วนของภาพ ข้อมูลระดับ และกฎที่เป็นธรรมชาติใน TypeScript ต้องสร้างฉากของ Phaser อีกครั้ง พร้อมฟังก์ชันการรับข้อมูลและปฏิสัมพันธ์ด้านฟิสิกส์ ตาม API ของ Bloom[\[6\]](https://github.com/phaserjs/phaser/tree/v4.2.1 "แหล่งข้อมูล 6 · ตรวจสอบล่าสุด 2026-12-02")[\[7\]](https://phaser.io/phaser4 "แหล่งข้อมูล 7 · ตรวจสอบล่าสุด 2026-12-02")[\[8\]](https://phaser.io/editor/pricing "แหล่งข้อมูล 8 · ตรวจสอบล่าสุด 2026-12-02")[\[9\]](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor "แหล่งข้อมูล 9 · ตรวจสอบล่าสุด 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")

### ข้อจำกัดของ Bloom ใดที่มีผลต่อการตัดสินใจนี้?

Bloom ยังเป็นรุ่นพรีวิว แพ็กเกจที่เผยแพร่คือ 0.4.19 การบิลด์ต้องใช้ Perry และ Rust ระบบนิเวศยังเล็กและต้องเขียนตรรกะเกมด้วยโค้ด เครื่องมือ World Editor แยกต่างหากใช้แก้ภูมิประเทศและวางเอนทิตีได้ ส่วนการสร้างพรีแฟบยังพัฒนาไม่เสร็จ Bloom ไม่มีเอดิเตอร์ภาพอเนกประสงค์สำหรับสร้างระบบการเล่นมาให้ในตัว[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "แหล่งข้อมูล 1 · ตรวจสอบล่าสุด 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "แหล่งข้อมูล 2 · ตรวจสอบล่าสุด 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "แหล่งข้อมูล 3 · ตรวจสอบล่าสุด 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "แหล่งข้อมูล 4 · ตรวจสอบล่าสุด 2026-12-02")

[เปรียบเทียบ Bloom กับ Phaser](https://bloomengine.dev/th/compare/phaser)

## แหล่งที่มา

ตรวจสอบล่าสุด 2 ธันวาคม 2569

1.  [github.com /Bloom-Engine/engine/tree/3cde2788](https://github.com/Bloom-Engine/engine/tree/3cde2788)
2.  [registry.npmjs.org /@bloomengine/engine/latest](https://registry.npmjs.org/@bloomengine/engine/latest)
3.  [github.com /Bloom-Engine/editor](https://github.com/Bloom-Engine/editor#status)
4.  [github.com /Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md)
5.  [apps.apple.com /us/app/bloom-jump/id6761447092](https://apps.apple.com/us/app/bloom-jump/id6761447092)
6.  [github.com /phaserjs/phaser/tree/v4.2.1](https://github.com/phaserjs/phaser/tree/v4.2.1)
7.  [phaser.io /phaser4](https://phaser.io/phaser4)
8.  [phaser.io /editor/pricing](https://phaser.io/editor/pricing)
9.  [phaser.io /tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor](https://phaser.io/tutorials/bring-your-phaser-game-to-ios-and-android-with-capacitor)
10.  [phaser.io /download/phaser4](https://www.phaser.io/download/phaser4)
11.  [phaser.io /editor](https://phaser.io/editor)

[Markdown](https://bloomengine.dev/th/alternatives/phaser-native-mobile.md)
