Skip to content
peterixPublic
forked from stople/OpenTitus

About

A port of the game engine behind the DOS versions of Titus the Fox and Moktar

Resources

Stars

7 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

266 Commits

Folders and files

Repository files navigation

OpenTitus

Game title screen

A modernized version of the game engine behind the DOS versions of Titus the Fox and Moktar.

The aim is to clean up the codebase, fix bugs, and make the game playable on modern systems. The difficulty or design decisions of the original are not sacred. If there's a way to make the game more playable or enjoyable, then let it be so.

For the authentic (brutal) experience, the game can be played in DOSBox.

Build & Test


License

OpenTitus is released under the Gnu GPL version 3 or (at your option) any later version of the license, and it is released "as is"; without any warranty.

Building:

You need:

This should get things built and ready for testing/use:

zig build

Running:

You need the original game files to make use of OpenTitus. OpenTitus parses the original files. It works with both Titus the Fox and Moktar.

  • Build and install using make release. The files go into zig-out.
  • Place the original game files in zig-out/MOKTAR and/or zig-out/TITUS folders.
  • Optionally, for the Amiga music and sound effects, copy the files from the Amiga version of the game into an AMIGA subfolder, like zig-out/TITUS/AMIGA. The music needs the .pat files and the instrument samples (kiki, cristelle, ...), the sound effects need ressort, ballon, tirperso, coup and fox (Titus) or lagaf (Moktar).
  • Run opentitus inside the zig-out folder.

With both games installed, opentitus --game titus or opentitus --game moktar skips the game selection.

You can get the game files from:

Please do not upload the original game files to the git server, as they are proprietary!

Checking changes to the game logic:

The game has no randomness, so the game logic can be checked with a deterministic replay. It plays every level with scripted input and prints fingerprints of the whole game state. If the fingerprints are the same before and after a change, the game behaves exactly the same.

zig build replay > before.txt
zig build replay > after.txt
diff before.txt after.txt

It needs the game files in zig-out (see above), runs without a window or audio, and doesn't touch your settings or saved progress. zig build replay -- 500 --game moktar replays Moktar with 500 frames per level instead of the default 3000. See src/replay.zig for details.

Enjoy!

About

A port of the game engine behind the DOS versions of Titus the Fox and Moktar

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages