Compare game engines

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][1]

Last checked

FeatureBloom Engineraylib
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]

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][7][1]

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][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

Move one frame loop first. Check the time units, input polling, texture loading and cleanup. Compare the output before porting the remaining systems.[6][7][1]

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][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]

Bloom or raylib?

Sources

Last checked

  1. github.com /Bloom-Engine/engine/tree/3cde2788
  2. registry.npmjs.org /@bloomengine/engine/latest
  3. github.com /Bloom-Engine/editor
  4. github.com /Bloom-Engine/engine/blob/3cde2788/docs/watchos-target.md
  5. apps.apple.com /us/app/bloom-jump/id6761447092
  6. github.com /raysan5/raylib/tree/6.2
  7. raylib.com
  8. github.com /raysan5/raylib/releases/tag/6.2

Markdown