PuRlO
A field expedition. Twenty-four samples. One shotgun.
A 2D top-down adventure built from scratch in C++ with SFML. You play a duck on a research expedition — collect every plant sample across three procedurally generated worlds while outsmarting the wildlife that wants them back.
A duck with a field kit.
Three worlds, one objective: bring the samples home.
Complete the collection
Twenty-four plant samples are scattered across three worlds, eight per world. A compass-style arrow points to the nearest outstanding specimen, so you are never wandering completely blind.
Fog form
The plants you gather can be turned into a drifting fog: phase through walls, cross water, and shrug off enemy contact while the form lasts.
Built to explore
Sprint, hop across water, duck under incoming fire, and dash through enemies. Earn a shotgun from the world's shop for when the wildlife gets too persistent.
Three worlds, one expedition.
Each world rolls from a seeded generator with its own terrain, hazards, and variants of the wildlife.
Rolling fields, ponds, and scattered scrub. The starting biome, patrolled by the local skeleton packs.
Dunes and cacti under a hostile sun. Enemy behaviour shifts here — the pack moves faster and hits harder.
Tight stone corridors in the dark. Visibility is short and the local wildlife is not accustomed to visitors.
The toolkit.
A focused set of systems, each hand-built for the duck.
Dash
Launch forward at 900 px/s, invulnerable for the duration. Contact flattens the pack — the duck's primary melee option.
Fog Form
Convert gathered plants into pure mist. Drift at 420 px/s through walls and water, taking no damage while the form lasts.
Shop & Inventory
Every downed enemy pays a coin. Spend them at the world's shop on the shotgun, shells, and consumables, then manage the stash in the grid inventory.
Boss Guardians
Collect all eight samples in a world and the biome's guardian appears. A world only clears once the entire pack is down.
Acid Trips
The shop sells acid tabs. Drop one and gamble: 50% a full LSD trip with rainbow shaders and speed, 50% a bad trip that panics the screen.
Minimap
A live minimap in the corner tracks terrain, enemies, the stoner, and uncollected plants so you always know where you are.
Built from scratch.
C++17 and SFML 2.6. No game engine — every system is written for this project.
PuRlO is written in C++17 with SFML 2.6, configured through CMake. Rendering, audio, input, and windowing sit on SFML; the simulation layer — terrain, AI, combat, dialogue, UI, and the editor — is original code.
Each world is generated procedurally from a seeded RNG: cluster-based terrain planting, random-walk path carving, and flood-fill connectivity checks that guarantee every plant sample is reachable before a level is considered valid.
Collision runs iterative least-penetration resolution with per-axis sliding. Enemies never all press the player at once — a pack-coordination layer limits simultaneous attackers and holds the rest in a formation ring outside strike range — and they check line of sight before attacking.
Enemy separation runs on a spatial hash bucketed into a 128px grid each frame, so each unit only inspects its immediate neighbourhood. That replaced an all-pairs scan that grew quadratically with the pack size.
The dialogue system is a hand-rolled word-wrap engine — SFML's text layout does not measure strings, so each line is assembled from per-word measurements — with typewriter-style reveal. The inventory adds stacking, drag-and-drop, and a quick-use slot.
Settings are read from a plain ini-style file before the window opens. The options menu writes globals the game polls each frame, rebuilding the window when they change.
The editor (mapedit) is a Hammer-style tile editor that ships with the game: it paints tiles, places decorations and enemy spawn points, and exports a compact binary .purlo format the game loads verbatim. It includes a 100-step undo history that survives palette swaps and resizes, a live minimap, and a validation panel that flood-fills the map so unreachable spawns are caught before play.
Play it now.
Free and open source. Download a prebuilt build for your platform, or grab the source and compile it yourself.
Free forever. No launcher, no DRM.
Frequently asked questions
What are the controls?
Move with WASD or the arrow keys. Space hops over water, Shift sprints, and Left Ctrl crouches to duck slime balls. K dashes, F fires the shotgun, E interacts, and I opens the inventory. Escape closes menus and opens the pause menu; R restarts if you get caught out.
How does the dash work?
The dash launches you at 900 px/s for 0.2 seconds on a 0.6-second cooldown. You are invulnerable for the ride, and hitting an enemy knocks it back.
How many worlds are there?
Three: the Grasslands, the Desert, and the Cave. Each is a 2800x2800 pixel, seeded, procedurally generated field holding eight plant samples to collect.
What power-ups can I find?
A speed surge (1.35x movement for six seconds), a ghost shield (immunity for four seconds), hearts that raise your maximum health, the plants themselves — gather enough and the duck can shift into fog form — and acid tabs from the shop that trigger a psychedelic trip.
What is fog form?
The duck becomes a drift of mist moving at 420 px/s, passing through walls and water and taking no damage until the form fades. Dashing and hopping are disabled while it lasts.
Does the inventory pause the game?
No. The bag opens as an overlay — enemies keep moving and timers keep ticking while you reorganise your stash. The Escape pause menu is the only true freeze.
Is PuRlO free?
Yes. Prebuilt builds for Windows and Linux are free to download, and the source is public on GitHub if you prefer to compile it yourself with CMake and SFML 2.6.
Was this made with a game engine?
No. It is C++17 and SFML 2.6, built from scratch — procedural generation, enemy AI, camera, dialogue, collision detection, and the map editor are all original to the project.