a singleplayer prison mining game. mine blocks, sell what you collect, upgrade your pickaxe and work through ranks and prestiges. collect pets, robots, crystals and pickaxe parts along the way. your equipped pet follows you around the mine, can sit in place and reacts to feeding. its appearance can be switched off in settings without losing its boost.
this is the standalone C++ client, built with SDL2 and OpenGL. download packages from this repository's releases.
packages: linux deb, rpm, AppImage and tar.gz; windows x64 and win32 installers and zips; macos apple silicon and intel apps.
requires a C++17 compiler, CMake 3.21 or newer, SDL2, OpenGL, FreeType, libpng, JsonCpp and libcurl 7.62 or newer.
on debian or ubuntu:
sudo apt install build-essential cmake pkg-config libsdl2-dev libgl-dev \
libfreetype-dev libpng-dev libjsoncpp-dev libcurl4-openssl-dev
./run.shrun.sh builds and starts the client. to build without launching it:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel 2the linux executable is build/prisontest. see desktop builds
for macos and windows dependencies, packages and the release workflow.
the asset files are kept in ui/, textures/, sounds/, fonts/ and data/
at the repository root. every build and release package includes the files
listed in resources.txt. the client loads them directly from its installation,
so the first launch works offline without an asset download or cache.
quarry textures and mining cracks are original pixel art drawn from the included source patterns. mine blocks retain their reference textures. other asset credits remain listed in asset credits.
on linux, saves and settings live under ~/.local/share/prisoncpp/,
or $XDG_DATA_HOME/prisoncpp/ when set. windows uses
%LOCALAPPDATA%/prisoncpp/; macos uses ~/Library/Application Support/prisoncpp/.
--save-dir PATH changes the save directory and puts settings beside it.
use WASD to move, left click to mine and right click to use an item.
E opens your inventory, M opens your pickaxe, and T or / opens chat.
type /help for commands and game systems. new worlds start with a tutorial
that can be skipped.
active autominer time, sell/token/xp multipliers and temporary enchant effects have countdown bars above the mine. the autominer countdown accounts for its current speed; the scoreboard shows stored time and the selected speed in BPS.
rampage adds +0.1x mining money, tokens and EXP per 2,500 blocks broken directly with the pickaxe, capped at +100x and 2,500,000 blocks. after 30 seconds idle, the streak loses 5%, then another 5% every 30 seconds until mining resumes. mine to earn that bonus back. the red bar appears above +0.1x and counts down to the next decay. enchants, bombs and automining do not build the streak. closing the world clears it.
each completed pickaxe prestige adds +1% money, tokens and EXP. equip a matching set of parts and use /parts to prestige; the bonus remains after the parts are consumed.
crystal boosts range from 1-10% at t1 to 460-700% at t10, with larger gains per
tier after t5. crafting can raise them further. equipped crystals add up to
+10,000% per boost type; already identified crystals keep their saved rolls.
enable Show Crystal Tiers in title or pause Settings to show coloured tiers
followed by a dark gray arrow, such as T12 > 4543% Token Boost, on the pickaxe tooltip.
/combinecrystals combines selected crystals and dust through as many tiers as
possible at four to one. review the result before confirming; unused items keep
their rolls, and equipped crystals stay in place.
removing an unfinished egg from /pets pauses hatching and keeps its progress
and pet details. put it back to resume; storage and world reloads keep that status.
ready pets are counted separately from eggs still hatching on the scoreboard.
/filter has one on/off switch. listed automatic drops use their selected action;
unlisted drops stay in inventory. void deletes a drop without a token payout.
/bin uses Trash Selected, followed by confirmation, for items already in inventory.
bosses can awaken at the mine entrance while mining with a level 1000+ pickaxe.
use /boss to reach one, then hold left click on its bright weak spot. the boss
bar tracks health, the current target and the three-minute encounter. victories
award points and a crystal; a full inventory keeps the crystal available through
/boss claim. later prestiges unlock stronger bosses.
mine bombs can be thrown without a delay between throws, with up to four active at once. they still explode on impact or when their fuse ends. lucky drops match total prestige: p0/p1 give t1, p10 gives t10, and p20+ gives t20. rebirths keep this progress; higher tiers clear a larger area.
open Statistics from the pause menu or use /stats for this world's totals:
mining, currency earned, enchant activations, bosses defeated, pets, crystals and other actions.
older worlds keep their recorded totals; actions that were never tracked start at zero.
/records shows your fastest prestige, biggest enchant payouts and best mining minute.
records belong to the world and exclude development worlds.
/quarry changes the surroundings, paths, lamps, flowers and banners without
refilling the mine. sakura, coral, crystal, frost, mushroom, bamboo, desert,
volcanic, willow, cursed, golden, birch, jungle, redwood, baobab and emerald
styles unlock through prestige.
/daily shows money, tokens, one crystal and points to claim once per utc day.
rewards grow with total prestige, rebirths and consecutive claims. missing a day
resets the streak; its bonus grows through day 30. /rewards also lists mining
milestones. each world keeps its own claims and streak.
the core checks can use the repository's asset files:
cmake -S . -B build -DBUILD_TESTING=ON -DPRISON_TEST_ASSETS="$PWD"
cmake --build build --parallel 2
python3 tools/check_data.py .
ctest --test-dir build --output-on-failure--assets "$PWD" runs the client with the repository's files instead of the
build's copy. game assets covers the file layout and packaging;
game data describes the gameplay tables.
when this checkout lives in a workspace with sibling assets/ and site/
folders, sync their contents after changing game data or features:
python3 tools/sync_workspace.py
python3 tools/sync_workspace.py --checkthe client owns the resources, version and help text. the sync exports assets
and rebuilds the site's guide, commands and feature summaries from those files.
edit data/help.json alongside gameplay changes so additions and removals reach
both the in-game help and website. run.sh also syncs this workspace before building.
python3 tools/sync_workspace.py --install-hooks installs local pre-commit checks
in the workspace repositories. standalone client checkouts still build normally.
- Pramsing — original concept.
- void717doll — adaptation of the original concept.
- Luanti — the original game's engine and a reference for this client.
- Minecraft and Roblox's OP Prison game modes — mining and progression inspiration.
- Codex — help with coding and development.
source is licensed under GPL-3.0. textures, fonts and sounds have their own credits and licenses.