- Category
- Developer Tools
- Rank
- No. 1277Tools index
Previous survey · No. 1266 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Coding
- GitHub
- 149 stars
- Date
About
Parin is a 2D game engine for the D programming language that sits between a small library like raylib and a full engine like Godot. It leaves game structure to the developer and includes a pixel-perfect physics engine, a dialogue system, atlas-based animation and tile map structures. It targets Web, Windows, Linux and macOS.
At a glance
Parin is a code-driven 2D game engine for D with helpers for animation and pathfinding. It is worth trying if you want to write the game loop directly and still have common game features available.
Good fit
D developers prototyping a small 2D game and comfortable organizing gameplay code themselves.
Consider something else when
Skip it if designers need a visual scene editor or your team depends on an existing asset pipeline.
Start here
Run the minimal demo, then make one sprite respond to input and check its position after resizing the window. That gives you a first look at the loop and resolution handling.
Cost and requirements
You need a D development environment and the dependencies for your target build. Game code and assets are handled by your project.
Limits to know
Code-driven flexibility leaves the project structure to you. Check the engine’s target and packaging support before choosing it for a release.
Sources checked 2026-11-05. Source-based assessment.
Read the source review
What it does
Parin is an engine for writing 2D games in D. You hand it a function that runs once per frame, and it opens the window, runs the loop, and exposes drawing, input, sound, timers and cameras as plain function calls. A one-line mixin generates the program's entry point. Rendering, audio and windowing go through raylib today. A second, custom backend exists but is experimental, and every one of its functions currently returns an empty value. New projects start from a DUB template, either a basic starter or an entity-based one.
Why it's ranked here
MIT licensed, with a clearly drawn scope. Parin ships more than a bare graphics library (the README lists a pixel-level physics engine, a dialogue system with its own terminal script runner, atlas animation and tile maps, and the API adds task scheduling and a per-frame memory arena) while imposing no scene or entity architecture. The documentation is practical: install commands for four Linux distributions, a tour, a cheatsheet, and numbered examples running from hello world to a Pong clone. The README links six released games made with it. The ceiling is the size of the D ecosystem and one listed author.
What's good
The API reads like a small standard library for games. Input checks accept characters, named keys, mouse buttons and gamepad buttons, and one binding can map an action to a gamepad button plus up to four keys. Timers support pause, resume and repeat. Most engine types are marked to run without the garbage collector, which backs the README's claim that collection is optional. Defaults are sensible: a 1280 by 720 window capped at 60 frames per second, an F3 debug toggle, and missing textures drawn as gray rectangles so a bad asset path shows up on screen. Web builds halve resource capacities automatically.
Tradeoffs
The README rules out hot reloading, and there is no scripting language, scene system or entity system; examples show how to build the last two yourself. Steam and ENet support is bindings only, so the native libraries must be downloaded or built and linked separately. Web builds need the LDC compiler plus Emscripten and a manual unpack step. On Linux you install a list of system audio and graphics packages first. The project setup tool's own comments say it needs a rewrite, and with the custom backend still a placeholder, raylib is a hard dependency for now.
How to use it well
Pick Parin if you already write D, or want to, and are making a small 2D game, especially pixel art at a locked low resolution like 320 by 180, where the one-to-one pixel scaling and pixel snapping settings pay off. Start from the entity template if the game has many object types, since the engine will not organize them for you. Keep the cheatsheet open; it covers most of the daily surface. For publishing on itch.io, the README walks through zipping the web output. Look elsewhere if your team needs designer-facing scripting or live code reloading.
Technical notes+
source/parin/package.d only re-exports parin.engine, which publicly imports the Joka modules (game, io, math, memory, types, ui) plus parin.types, so one import brings the whole surface. source/parin/backend/package.d selects parin.backend.web under version ParinBackendWeb and parin.backend.rl otherwise. In source/parin/backend/rl.d, updateWindow hands the loop to emscripten_set_main_loop on Emscripten and runs a plain while loop elsewhere; openWindow sets raylib to resizable with error-only logging and no exit key, and preallocates four 1024x1024 RGBA textures that back Surface drawing (TOUR.md notes surfaces are uploaded to a GPU atlas each frame they are drawn). Backend resource capacity is 256 on Emscripten and 2048 otherwise. source/parin/backend/web.d is a stub: every loader returns an empty Maybe, every query returns zero or false, and isBackendNull returns true when the state pointer is non-null, the inverse of its name. In source/parin/types.d, defaultEngineResourceScaleDenominator is 2 under WebAssembly, which halves the frame arena (4 MB native), task list and path buffers declared in source/parin/engine.d. Most structs there are @safe nothrow @nogc. dub.json declares MIT, links raylib, and points linker paths at vendored macOS and Linux libraries under packages/setup; packages/setup/source/app.d embeds the raylib DLL and import library only on Windows, writes Zed editor config, and generates a game manifest whose license defaults to proprietary.
Observed
- License
- MIT (declared in dub.json and SPDX headers in source files)
- Language
- D
- Packaging
- DUB package with basic and entity project templates; script-based install path without DUB
- Interface
- Library API called from game code, plus a project setup executable
- Rendering backend
- raylib; a custom web backend is present as an unimplemented stub
- Platform support
- Web, Windows, Linux, macOS (README); dub.json configurations for linux-x86_64, windows-x86_64 and osx
- Web build toolchain
- LDC compiler with Emscripten
- Optional integrations
- Bindings for Box2D, Steamworks, ENet and microui; Steamworks and ENet binaries not bundled
- Foundation library
- Built on Joka, the author's portable utility library
- Hot reloading
- Not supported; the README rules it out
Read from README.md, dub.json, source/parin/package.d, source/parin/engine.d, source/parin/types.d, source/parin/backend/package.d, source/parin/backend/rl.d, source/parin/backend/web.d, TOUR.md, CHEATSHEET.md, examples/basics/_001_hello.d, examples/games/_002_pong.d, packages/setup/source/app.d.
Similar tools
Tags
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.