Last checked
| Feature | Bloom Engine | raylib |
|---|---|---|
| Game language | TypeScript[1] | C99[6] |
| Engine licence | MIT[1] | zlib/libpng[6] |
| Current version | 0.4.19[2] | 6.2[8] |
| Editor | Separate World Editor[3] | Code-first[7] |
| Game targets | macOS · Windows · Linux · iOS · tvOS · watchOS · visionOS · Android · Web[1][4] | Windows, Linux, macOS, Android, Raspberry Pi, HTML5 and FreeBSD build guidance[6] |
| Rendering | wgpu · Metal · DX12 · Vulkan · OpenGL · WebGPU / WebGL · SwiftUI / SceneKit[1][4] | OpenGL / OpenGL ES[6] |
| Physics | Jolt on supported native targets. watchOS uses a different backend.[1][4] | Game-defined collision and simulation[6] |
| Agent workflow | TypeScript files compiled with Perry[1] | Edit source files with your coding agent[6] |
| Price | The engine is free under its published licence.[1] | The engine is free under its published licence.[6] |
The published racer experiment has no run for this engine. Read the experiment · Code and logs
Move a sprite
The sprite moves right at 120 units per second and wraps at 640. Download sprite.png
Bloom Engine
Place sprite.png beside the executable and launch it from that directory. Use the released engine with Perry and 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);
});raylib
Compile with raylib and run from the directory containing sprite.png.[6][7][1]
#include <raylib.h>
#include <math.h>
int main(void) {
InitWindow(640, 360, "raylib");
Texture2D sprite = LoadTexture("sprite.png");
float x = 0;
SetTargetFPS(60);
while (!WindowShouldClose()) {
x = fmodf(x + 120 * GetFrameTime(), 640);
BeginDrawing();
ClearBackground(BLACK);
DrawTexture(sprite, (int)x, 180, WHITE);
EndDrawing();
}
UnloadTexture(sprite);
CloseWindow();
return 0;
}Choose Bloom if…
You want a familiar draw loop in TypeScript, integrated 3D physics and native Apple mobile or TV targets.[1][2][3][4]
Choose raylib if…
You want small C examples, direct control over your loop or a Raspberry Pi build.[6][7][1]
Migration notes
Keep the frame loop and art. Translate handles and calls, verify texture lifetime and collision behavior. Bloom is an independent implementation inspired by raylib.[6][7][1]
Frequently asked questions
Can a raylib project import Bloom as a binding?
Bloom has its own implementation and package. Familiar raylib call patterns help with a manual port, but the APIs and resource handles differ.[6][7][1]
What does it cost to use raylib?
The engine is free under its published licence.[6]
What can I reuse when moving to Bloom?
Keep the frame loop and art. Translate handles and calls, verify texture lifetime and collision behavior. Bloom is an independent implementation inspired by raylib.[6][7][1]
Which Bloom limitations matter for this decision?
Bloom is in preview. The published package is 0.4.19. Builds require Perry and Rust. The ecosystem is small. Gameplay is written in code. The separate World Editor supports terrain and entity placement. Prefab authoring is unfinished. Bloom has no bundled general-purpose gameplay editor.[1][2][3][4]
Move a raylib game to TypeScript
Sources
Last checked
- 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
- github.com /raysan5/raylib/tree/6.2
- raylib.com
- github.com /raysan5/raylib/releases/tag/6.2