Archetype is a message-passing, object-oriented programming language for writing text-based adventure games. The interpreter is implemented in C++11. Game source files use the .arch extension; compiled binaries use .acx.
cmake -S src -B build
cmake --build build./build/archetype --testAlways run the test suite and verify it passes before committing changes to C++ source.
echo "look" | ./build/archetype --source=games/gorreven.arch --include=gamessrc/— C++ source for the interpretergames/— Game sources (.arch) and compiled binaries (.acx)drivers/— Cloud Run driver (Python/Flask); seedrivers/README.mdarchetype-mode.el— Emacs major mode for syntax highlighting
include "file"in Archetype source uses implicit.archextension; do not include the extension explicitly.- Compiled
.acxfiles are fully resumable — a save file is a mutated copy of the original binary. - The
--include=gamesflag is needed when compiling from source so the compiler can findstandard.archand other shared library files.