Hey this is really cool. Is this open source?
Hi, thanks for playing! Unfortunately since it’s a 3DRL (I started 7 Day Roguelike at the 4th day I think) the code is super spaghetti to publish 😅, built by hacks over hacks while learning web technologies.
It’s coded with Vite + Vanilla TypeScript using rot.js library. Architecture is my turn your turn (I think), player acts then each creature acts, and interaction is direct access (OOP style).
player.value + target.value % 10
I also remember there are some global variables & assumptions about the game, which proved to be a challenge in making the condensed mode.
The details are fuzzy, I could post more when I get back to the codebase in my previous computer, I forgot to upload it to git server for some reason.
If I make it again today I would probably use Vite, React, TypeScript. And unify player + neutrals + enemies into a single class. The entity relations are simple so I guess OOP style is fine.
Thanks for playing again and sorry for the late reply! ✨