Labyrinth
A top-down action game and one of my earliest projects: you guide the hero “Leini” through a stone maze, weaving the corridors, collecting herb bushes for points and fighting off skeletons while your vitality ticks down.
This is a very old hobby project from my school days — made years before I went to university or wrote any code professionally, so go easy on it. :)
Originally written in C++ with the Allegro library. The version below is a faithful rebuild: the gameplay simulation is the original C++ logic compiled to WebAssembly (no STL, no dependencies), while the browser handles rendering (WebGL2), audio (WebAudio), input and the main loop. The maze was unpacked straight from the original Allegro LZSS-packed map file.
Click the game once to give it keyboard focus.
| Action | Keys |
|---|---|
| Move | Arrow keys / WASD |
| Attack | Space |
| Mute | M |
| Restart (after death) | R |
The hero starts in the top-left corner of the maze. Collect herbs for points and attack skeletons before they wear your vitality down.