Project details
Parin is a simple yet powerful 2D game engine designed for the D programming language. It bridges the gap between small libraries and larger engines, providing a modular foundation and code-driven design. With built-in essentials, a pixel-perfect physics engine, and easy setup, Parin is ideal for both indie developers and game enthusiasts.
Parin is a delightfully simple 2D game engine specifically designed for the D programming language. It is crafted to be easy to set up and hackable, providing a robust set of built-in essentials to facilitate game development.
Parin occupies a unique space between lightweight libraries like raylib and comprehensive engines such as Godot. This engine provides guidance without overwhelming the developer. Key features include:
Here is a simple example demonstrating Parin's functionality:
import parin;
// Called every frame while the game is running.
bool hello(float dt) {
lockResolution(320, 180);
drawText("Hello!!!", mouse);
return false;
}
// Creates a main function that calls the given function.
mixin runDemo!hello;
For ease of use, Parin can be initialized with DUB using simple commands:
dub init -t parin
dub run
For comprehensive guidance, refer to the examples directory or the cheatsheet for an overview. Further exploration can be achieved via the tour page or by utilizing the DDOX documentation engine.
Contributions and ideas for Parin are welcomed. Engage with the community by opening issues or participating in GitHub discussions. Additional resources like single-file D libraries can be added as plugins in the addons folder.
Parin is not merely a wrapper but a standalone engine, making it a suitable choice for both indie and established developers seeking a flexible tool for creating 2D games.
Comments
1Very cool stuff ngl!