Thank you for your replies -- to be honest it's not as playable as Doom, more like Wolfenstein 3D, I did everything myself, it is quite simple and to a great degree a manifesto and a proof of specific programming philosophy, which of course for the purpose of this forums we can just ignore :) People like to speedrun even more obscure games so I thought I would share this, I would really love to see someone finds exploits I didn't foresee.
Hello,
I have just added demo/TAS support to my game called Anarch, I'd like to let people know here in case anyone would be interested in TASing it, I would definitely love to see a TAS (I've already TASed the first level as a test). The game is completely free software, public domain and hacking friendly, so you can just download it for free and do whatever you like. Its repository is here: https://codeberg.org/drummyfish/AnarchLink to video
How to (for Unix users, other OSes work too if you can mimic the steps):
- Download the game repository ("git clone" ...).
- Apply the demo mod with "git apply mods/demo.diff" in the game directory.
- Compile the game e.g. with "./make.sh sdl". Compilation is extremely easy, only requires SDL2. There are precompiled binaries but those are without the demo support, so you have to compile the game to make a TAS.
- Now make a file named demo.txt in the game directory -- in it you will write the key states at specific frames. The demo format is very simple and descibed in the file mods/demo.diff, you can also find some already existing demos in the mod directory.
- To replay the demo run the game with "./anarch -w -d". This just starts the game, loads the demo file and replays it. Of course you can rewind -- this is done by putting a * character on some line in the demo file.
- You may also do things such as slow down time by modifying variables in settings.h, but watch out to not mess with settings that would make the game mechanics different (e.g. difficulty). You may also apply some graphic-only mods that don't affect the game mechanics to make the game look better if you want, e.g. the full zbuffer mod.
- Watch out that each demo is specific to the game version, its resolution (if mouse is used) and FPS. I recommend making the TAS for the vanilla settings as that is the standard version.
Thanks, let me know if you need further help with anything :)