Good Dungeon - A Twine dungeon-crawler!
Hey all! My friend and I made a silly seasonal game, Good Dungeon, because we are both fools and I am determined to use Twine for anything other than what it's made for. In this case, that's a top-down dungeon-crawler with combat and VN-style dialogue.
It was super learn figuring out how to program this--I've never asked a question on this sub, but lurking has gotten me a lot of info I might not otherwise have seen.
This certainly isn't the best way I could have coded up the game, but I'm pretty proud of what I've put together. I might try and clean up the execution in the future and put the code out, if I could get it into a shape that would be easily usable by others.
Posted Nov 16, 2020, 2:56 AM UTC · edited
i’m looking into adding some elements like this into my game and ran into the issue where Sugarcube doesn’t push variable changes to history unless you navigate to a different passage. so if someone makes a move and then reloads the game they won’t be at the right spot if you just have one “map” passage that takes care of the moving. if you don’t mind me asking, did you run into this issue at all? or does pressing the arrow buttons go to a new passage each time and the map is redrawn every move, avoiding this issue?
I wanted to avoid unnecessary passage making the gameplay slow and/or bloating the history, so there are only passage transitions between 1) battles 2) unlocking doors/revealing rooms 3) and moving floors. The game also autosaves after each of those things.
If this was a bigger game, potentially with random generation, then I might've tried something a bit different, but for the scope and maps we have, there's basically never a time when one of those things hasn't happened recently.