>>> help(dunder_quest.prince)
Prince of Versions
The Git game's name, lines, palette, type, cast and cards.
prince.__logo__
The name
Two lines of Pixelify Sans on palace night: Prince of small in pale sand, Versions big in the sand of the dagger, left-aligned the way the title screen sets it. The URL and the repo folder are just prince.
Download the icon as SVG. It's games/prince/icon.svg.
prince.__doc__
How it's described
The hook is undo: Git is how you take back a mistake, and here undo is a dagger that turns back time, but only to a commit.
| Line | Where | Made in |
|---|---|---|
| The Vizier has the Princess, the hourglass is running, and all you have is a dagger full of sand. It turns back time, but only to a moment you sealed. A seal is a git commit. | Page hero | site/build.ts |
| Learn Git. Turn back the sands. | Title screen, social card, trailer end card | games/prince/ui/title.gdgames/prince/tools/site_art.pygames/prince/tools/make_trailer.py |
| a __dunder_quest__ game | Title screen, social card, trailer end card | games/prince/ui/title.gdgames/prince/tools/site_art.pygames/prince/tools/make_trailer.py |
| A palace platformer where the dagger that turns back time is version control. | Home page card | site/build.ts |
| A dagger that turns back time. But only to a moment you sealed. A seal is a git commit. The Vizier commits too. Real Git. Real commit ids. | Trailer cards, one at a time | games/prince/tools/make_trailer.py |
| LEARN GIT · git reset --hard HEAD~1 | Trailer thumbnail | games/prince/tools/make_trailer.py |
| One prince, one dagger, and every commit you'll wish you'd made. | Page footer | site/build.ts |
| Prince of Versions, a Dunder Quest game that teaches Git: the dagger that turns back the sands is version control, and it only takes you back to a commit. Play it free in your browser. | Search results | site/build.ts |
It's an homage to a certain palace-run platformer and its time-rewinding sequel. Names are homage names only: The Prince, Grand Vizier Rebasir, Princess Shirin. The sprites, rooms and music are its own, never copies, and nothing public names the original.
prince.__colors__
The palette
A palace at night, read from games/prince/core/palette.gd.
SAND = "#e8ba4a"The Sands of HEAD: the name, the sand trail and every highlightSAND_PALE = "#f5e3a1""Prince of" in the name, the hourglassNIGHT = "#171c33"The palace at night: backgrounds and title cardsINK = "#120d1a"Outlines, the console's panelsSTONE = "#545c80"Palace stonePAPER = "#f5ebcc"Text, and the Prince's tunicTEAL = "#1f999e"Commands on the title cards, the palace tilesCRIMSON = "#d1333d"The Prince's sash, a modified file, a deathVIOLET = "#8f5cc7"The Vizier, and his commits on the trailGREEN = "#73cc78"A lever that took, a clean working treeSTEEL = "#a8b2cc"Spikes, gates and the portcullis
git status # what changed since the last commit
git commit -am "Light the first torch"
git reset --hard HEAD # throw away everything sinceprince.__fonts__
The type
Prince of Versions
Pixelify Sans The name, the title cards and the game's words, on this site and in the trailer · TTF$ git reset --hard HEAD~1
VT323 The dagger's console: every command and Git's reply · TTFThe dagger only goes back to a commit.
Atkinson Hyperlegible Body text on this site
All three are under the SIL Open Font License.
prince.__art__
The cast and the art
The game draws at 480×270. Scale it by whole numbers with nearest-neighbor. Click a piece for the original file.
Title artThe title screen, the page's hero and the social card
The PrinceThe hero, in a white tunic and red sash
The Dagger of HEADDrawn: the console comes up
Grand Vizier RebasirThe villain, who commits sabotage
Princess ShirinKeeps the palace ledger
The palace tilesStone, spikes, gates, bridges, levers, torches, a scroll: each one a file
The exitShut, open, and barred by the Vizier
A torch, uncommittedgit status lists it until it's sealed
DeadThe only way on is git reset --hard
The Vizier's commitHis seal on the sand trail, in violet
The merge conflictIn the markers Git really writes
Sprites and tiles are painted by games/prince/tools/paint.py, the backdrops by tools/scenery.py; tools/site_art.py cuts them out for this page.
prince.__cards__
The social card and the thumbnail
Prince of VersionsThe Prince of Versions page and its game
Trailer thumbnailThe YouTube video, and the page's trailer
The card is painted by games/prince/tools/site_art.py, the thumbnail by games/prince/tools/make_trailer.py. The trailer itself is on the trailers page, and its upload form on the YouTube page.
prince.__launch__
The launch posts
Prince of Versions' posts are on the launch page.