Skip to content
A general-purpose 2D game engine.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

MoleEngine is a general-purpose 2D game engine written in Rust as a solo hobby project. Its primary focuses are cool physics tools and a simple interface that allows for quick prototyping.

Introductory blog post

Implemented features

  • Entity-Component-System framework
    • functional but with some loose ends
  • 2D rigid body physics
    • narrow phase collision detection
    • rudimentary collision impulse solver
  • Graphics
    • Simple 2D mesh rendering with glium; heavily WIP

See the issues for notes on future developments.


Blog posts regarding this project and other things can be found once in a blue moon on my personal website.

Running the test game

There's not much to show here, but thanks to the Rust toolchain it's very easy to check out the test game should you wish to do so.

  1. Install Rust
  2. Clone and navigate to this repository
  3. cargo run --features all --example testgame

Testgame keybindings

Disclaimer: these might be out of date - the test game changes in quick and dirty ways

Space   - pause
Enter   - load / reload level
Esc     - close the game
S       - spawn a box
Arrows  - nudge the "player" box around
PgUp/Dn - spin the "player" box
LShift  - stop the "player" box from moving
You can’t perform that action at this time.