[Compare game engines](https://bloomengine.dev/compare)

# Move a raylib game to TypeScript

Try a community binding if you need raylib itself. Try Bloom if an independent TypeScript API with a similar drawing loop, PBR and Jolt fits your target.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

Last checked December 2, 2026

| Feature | Bloom Engine | raylib |
| --- | --- | --- |
| Game language | TypeScript[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02") | C99[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Engine licence | MIT[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02") | zlib/libpng[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Current version | 0.4.19[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "Source 2 · Last checked 2026-12-02") | 6.2[\[8\]](https://github.com/raysan5/raylib/releases/tag/6.2 "Source 8 · Last checked 2026-12-02") |
| Editor | Separate World Editor[\[3\]](https://github.com/Bloom-Engine/editor#status "Source 3 · Last checked 2026-12-02") | Code-first[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02") |
| Game targets | macOS · Windows · Linux · iOS · tvOS · watchOS · visionOS · Android · Web[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 2026-12-02") | Windows, Linux, macOS, Android, Raspberry Pi, HTML5 and FreeBSD build guidance[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Rendering | wgpu · Metal · DX12 · Vulkan · OpenGL · WebGPU / WebGL · SwiftUI / SceneKit[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 2026-12-02") | OpenGL / OpenGL ES[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Physics | Jolt on supported native targets. watchOS uses a different backend.[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 2026-12-02") | Game-defined collision and simulation[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Agent workflow | TypeScript files compiled with Perry[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02") | Edit source files with your coding agent[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |
| Price | The engine is free under its published licence.[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02") | The engine is free under its published licence.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02") |

The published racer experiment has no run for this engine. [Read the experiment](https://bloomengine.dev/blog/one-racing-game-six-ways) · [Code and logs](https://github.com/Bloom-Engine/racer-experiment)

## Move a sprite

The sprite moves right at 120 units per second and wraps at 640. [Download sprite.png](https://bloomengine.dev/compare/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\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "Source 2 · Last checked 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "Source 3 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 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);
});
```

### raylib

Compile with raylib and run from the directory containing sprite.png.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

main.c

```
#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\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "Source 2 · Last checked 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "Source 3 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 2026-12-02")

## Choose raylib if…

You want small C examples, direct control over your loop or a Raspberry Pi build.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

## Migration notes

Move one frame loop first. Check the time units, input polling, texture loading and cleanup. Compare the output before porting the remaining systems.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

## Frequently asked questions

### Is Bloom a raylib port?

Bloom credits raylib for its API design and implements its own renderer and runtime. Port a small loop before moving the rest of the game.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

### What does it cost to use raylib?

The engine is free under its published licence.[\[6\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")

### 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\]](https://github.com/raysan5/raylib/tree/6.2 "Source 6 · Last checked 2026-12-02")[\[7\]](https://www.raylib.com/ "Source 7 · Last checked 2026-12-02")[\[1\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")

### 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\]](https://github.com/Bloom-Engine/engine/tree/3cde2788 "Source 1 · Last checked 2026-12-02")[\[2\]](https://registry.npmjs.org/@bloomengine/engine/latest "Source 2 · Last checked 2026-12-02")[\[3\]](https://github.com/Bloom-Engine/editor#status "Source 3 · Last checked 2026-12-02")[\[4\]](https://github.com/Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md "Source 4 · Last checked 2026-12-02")

[Bloom or raylib?](https://bloomengine.dev/compare/raylib)

## Sources

Last checked December 2, 2026

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 /raysan5/raylib/tree/6.2](https://github.com/raysan5/raylib/tree/6.2)
7.  [raylib.com](https://www.raylib.com/)
8.  [github.com /raysan5/raylib/releases/tag/6.2](https://github.com/raysan5/raylib/releases/tag/6.2)

[Markdown](https://bloomengine.dev/alternatives/raylib-typescript.md)
