最后检查时间
| 项目 | Bloom Engine | Bevy |
|---|---|---|
| 游戏开发语言 | TypeScript[1] | Rust[6] |
| 引擎许可证 | MIT[1] | MIT / Apache-2.0[7] |
| 当前版本 | 0.4.19[2] | 0.20.1[7] |
| 编辑器 | 独立的World Editor[3] | 代码驱动,编辑器 UI 工具正在开发中[8] |
| 游戏目标平台 | macOS · Windows · Linux · iOS · tvOS · watchOS · visionOS · Android · Web[1][4] | Windows · macOS · Linux · Web · iOS · Android[6] |
| 渲染 | wgpu · Metal · DX12 · Vulkan · OpenGL · WebGPU / WebGL · SwiftUI / SceneKit[1][4] | wgpu · 2D / 3D[6][7] |
| 物理 | 在支持的原生平台上使用Jolt。watchOS使用不同的后端。[1][4] | 赛车游戏使用 avian3d[9] |
| 智能体工作方式 | 由Perry编译的TypeScript文件[1] | Cargo · Rust ECS[7][9] |
| 价格 | 该引擎在其发布的许可下是免费的。[1] | 该引擎在其发布的许可下是免费的。[7] |
同一游戏,同一代理
Mac 和 iPhone
每种方案都在 Claude Code 中用 Claude Opus 5.5 运行一次。工作时间扣除了等待人工响应的时间。各组的机器和构建目标不同。使用 Apple M1 Max。移植版、Bloom 原生版和混合版也在 iPhone 16 Pro 真机上运行。Bevy 的 iOS 版只在模拟器中运行,网页版在 Chrome 中运行。
| 引擎 | 代理工作时间 | macOS 包 | iOS 包 | 输入令牌 | 输出令牌 |
|---|---|---|---|---|---|
| Bloom 原生版本 | 73分钟 | 71 MB | 76 MB | 6170万 | 18.4万 |
| Bevy 0.20.1 | 145分钟 | 131 MB | 130 MB | ≈4420万 | ≈21.4万 |
Bloom 原生版使用的输入词元最多。修改一行后重新构建耗时 5.4 s,在 iPhone 16 Pro 的低画质设置下保持 60 fps。代理记录了 29 项开发障碍。
在 Mac 上使用默认功能从零构建发布版耗时 11 min 27 s。iOS 结果来自模拟器。
请在同一机器的同一列中比较条形长度。横线表示未生成可比的包。混合版生成 Mac 二进制文件和独立资源,Three.js 生成网页版。 未完成的 folio-2025 移植属于另一个项目,没有计时结果。
移动精灵
精灵以每秒 120 个单位的速度右移,到达 640 时回到起点。 下载 sprite.png
Bloom Engine
将 sprite.png 放在可执行文件旁边,并从该目录启动它。使用发布的引擎配合 Perry 和 Rust。[1][2][3][4]
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);
});Bevy
使用默认的 Bevy 项目,把 sprite.png 放在 assets 中,然后用 Cargo 运行。[6][7][8][9]
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
resolution: (640, 360).into(),
..default()
}),
..default()
}))
.add_systems(Startup, setup)
.add_systems(Update, slide)
.run();
}
fn setup(mut commands: Commands, assets: Res<AssetServer>) {
commands.spawn(Camera2d);
commands.spawn((
Sprite::from_image(assets.load("sprite.png")),
Transform::from_xyz(-320.0, 0.0, 0.0),
));
}
fn slide(time: Res<Time>, mut sprites: Query<&mut Transform, With<Sprite>>) {
for mut transform in &mut sprites {
let x = &mut transform.translation.x;
*x = (*x + 320.0 + 120.0 * time.delta_secs()).rem_euclid(640.0) - 320.0;
}
}迁移说明
迁移艺术资源和游戏规则。将 ECS 的组件、查询和调度转换为显式的状态和帧级更新。赛车使用 avian3d 实现物理模拟。[6][7][8][9][1]
常见问题解答
Bevy 的赛车是否在 iPhone 上进行过测试?
使用 Bevy 要花多少钱?
该引擎在其发布的许可下是免费的。[7]
在迁移到Bloom时,我可以复用什么内容?
迁移艺术资源和游戏规则。将 ECS 的组件、查询和调度转换为显式的状态和帧级更新。赛车使用 avian3d 实现物理模拟。[6][7][8][9][1]
哪些Bloom的限制对这个决策有影响?
Bloom 处于预览阶段,发布的包版本为 0.4.19。构建需要 Perry 和 Rust。生态较小,游戏逻辑以代码编写。独立的 World Editor 支持地形编辑和实体放置,预制件创作功能尚未完成。 Bloom 未内置通用可视化玩法编辑器。[1][2][3][4]
源代码
最后检查时间
- github.com /Bloom-Engine/engine/tree/3cde2788
- registry.npmjs.org /@bloomengine/engine/latest
- github.com /Bloom-Engine/editor
- github.com /Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md
- apps.apple.com /us/app/bloom-jump/id6761447092
- bevy.org
- github.com /bevyengine/bevy/tree/v0.20.1
- bevy.org /news/bevy-0-20
- /blog/one-racing-game-six-ways