Tutankhamun
Tutankhamun is a PC port of Pharaoh + Cleopatra that runs on modern operating systems and supports custom resolutions and Discord Rich Presence.
- Type: PC port
- Game: Pharaoh
- Runs on Windows
- By dalerank
- Source: https://github.com/dalerank/tutankhamun
README
Tutankhamun
Tutankhamun is an open-source re-implementation of Pharaoh + Cleopatra 2.1 (Impressions Games, 2000) in C: the
game written again as a program of its own, tutankhamun, that plays on the files of your own copy of the game
in a window (SDL2) on modern Windows, Linux and macOS, on Android, the iPad and in the browser. It is also a readable
reference for the game's behaviour, mainly to support Akhenaten.

Tutankhamun will not run without the original Pharaoh + Cleopatra files. You can buy a digital copy from GOG or Steam, or use an original CD-ROM version updated to 2.1.
The goal of the project is to have exactly the same game logic as Pharaoh + Cleopatra, with the same look and feel. This means that the saved games are compatible with the original game, and any gameplay bugs present in the original are also present in Tutankhamun. No game assets are part of this repository.
Running the game
| Platform | Unstable build | How to run and build |
|---|---|---|
| Windows (32-bit) | docs/windows.md | |
| Windows x64 | docs/windows.md | |
| Linux | docs/linux.md | |
| macOS arm64 | docs/macos.md | |
| macOS x64 | docs/macos.md | |
| Android | docs/android.md | |
| iPad / iOS | docs/ios.md | |
| Web | docs/web.md |
The unstable build is the latest build of main:
- Windows: a zip with
tutankhamun.exeand itsconfigfolder, unpack it anywhere; - Linux:
Tutankhamun-x86_64.AppImage, one file for 64-bit distributions with glibc 2.34+; - macOS: a disk image with
Tutankhamun.appfor Apple silicon (11.7+) or Intel (10.15+), signed ad hoc; - Android:
app-release.apkfor Android 5.0+, played with touch; - iPad / iOS:
Tutankhamun.ipafor iOS 13+, not signed: a check of the build until it is signed for a device (docs/ios.md); - Web: the game's page in a desktop browser; the folder of your game is copied into the browser once.
You need an installed Pharaoh + Cleopatra 2.1; only its data is used. The game finds the installation itself (the Steam and GOG folders, the folder it remembers, then a folder picker) or takes it on the command line. Like the original it writes the players and the saved games into the game folder, in the original format.
Free play: the main menu's second button asks for the family, whose folder keeps the saved games, then lists every Pharaoh and Cleopatra mission; its end returns to the main menu without changing the campaign progress, records or high scores.
Resolutions: any size from 640x480 up to the display's; F7 / F8 / F9 and F6 (full screen) work as in the original.
Discord: on the desktop the game shows the current mission in your Discord status (config/discord.json turns
it off).
Building from source
Every platform builds from the same CMake project, with SDL2 and SDL2_mixer fetched and linked statically:
build.bat on Windows, presets and an AppImage script on Linux,
presets and a disk image script on macOS, Gradle on Android
(and Google Play), Xcode for the iPad, Emscripten for
the browser. BUILD.md
has the details.
Contributing
This project is not meant for further development: it exists only to preserve the heritage of the original game and to port it to other platforms. Pull requests are accepted only for minimal fixes. See CONTRIBUTING.md.
Credits
Parts of the code come from other projects (details: LICENSES/README.md and each file's header):
- Akhenaten: the Bink video decoder (src/third_party/akhenaten_bink), the SDL build scripts (cmake/), the Discord presence, the mouse cursors, the Discord and Patreon pictures of the main menu's link buttons, the model of the resolution list and of the link buttons;
- Julius: src/platform/sound_device.c and src/platform/screen.c, the cursors' pixel art, and the select list that the resolution list draws like (src/game/window/display_resolution_list.c);
- the GitHub picture of the link buttons is the Simple Icons mark (CC0-1.0).
Third-party libraries: SDL2 2.32.10 (zlib), SDL2_mixer 2.8.0 (zlib) with minimp3 (CC0-1.0), parson 1.5.3 (MIT, src/third_party/parson); their licence texts are in LICENSES/.
License
The project's own code is under the MIT License (LICENSE); the files taken from Julius and Akhenaten keep their AGPL-3.0 (LICENSES/AGPL-3.0.txt, listed in LICENSES/README.md with the libraries' licences). A program built with those files, as every build of tutankhamun is, is distributed under AGPL-3.0 as a whole.
Tutankhamun is not affiliated with or endorsed by the owners of Pharaoh and Cleopatra. The game's data, names and trademarks belong to their owners; you need your own copy of the game to play.