parin 0.0.36
A delightfully simple and lightweight 2D game engine for the D programming language.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This package provides sub packages which can be used individually:
parin:setup - A helper script that automates the project setup.
parin:web - A helper script to assist with the web export process.
parin:rin - A script interpreter for Rin.
Parin
A delightfully simple and lightweight 2D game engine for the D programming language, offering a solid foundation for creating 2D games.
import parin;
void ready() {
lockResolution(320, 180);
}
bool update(float dt) {
drawDebugText("Hello world!", Vec2(8));
return false;
}
void finish() { }
mixin runGame!(ready, update, finish);
Batteries Included
- Intuitive immediate mode UI
- Flexible dialogue system with a stack-oriented scripting language
- Atlas-based animation library
- ...and more!
Supported Platforms
- PC: Windows, Linux, Mac
- WebAssembly
Projects Made With Parin
A list of projects made with Parin is available in the projects page.
Installation
This guide shows how to install Parin and its dependencies using DUB. Create a new folder and run inside the following commands:
dub init -n
dub run parin:setup
dub run
If everything is set up correctly, a window will appear showing the message "Hello world!".
Required Libraries on Linux
Some libraries for sound, graphics, and input handling are required before using Parin on Linux. Below are installation commands for some Linux distributions.
Ubuntu:
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
Fedora:
sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic
Arch:
sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama
Documentation
Start with the examples folder for a quick overview. For more details, check the tour page.
- Registered by Alexandros F. G. Kapretsos
- 0.0.36 released 2 days ago
- Kapendev/parin
- MIT
- Copyright © 2024, Alexandros F. G. Kapretsos
- Authors:
- Sub packages:
- parin:setup, parin:web, parin:rin
- Dependencies:
- joka
- Versions:
-
0.0.36 2025-Jan-27 0.0.35 2025-Jan-23 0.0.34 2025-Jan-16 0.0.33 2025-Jan-10 0.0.32 2025-Jan-04 - Download Stats:
-
-
1 downloads today
-
11 downloads this week
-
25 downloads this month
-
81 downloads total
-
- Score:
- 1.5
- Short URL:
- parin.dub.pm