Rosio Pavoris

Make your own text adventure~

In case anyone’s interested, I’ve stripped the The Mansion code of any game content and uploaded it here. It’s heavily commented to help you understand what everything does.
(Start reading in core.cpp.)

Calling it a game engine would be a bit much, but if you’re new to C++ (but not very new to programming in general) and would like to make your own text adventure, I think you could start from there.
There are a few design decisions that would probably get me a spot on The Daily WTF (or would have, back when they still did code as opposed to just random screenshots and weaksauce stories), but I’d like to think most of them are defensible in light of increased readibility of the code (except for the way generic_actions.hpp works—I should’ve made that into a function and included it once, probably; still, a bit of redundant code never killed anyone, and I can’t be arsed to fix it now).
It’s certainly good enough for small to medium-sized text adventures, anyway.

If you have any questions, feel free to ask. And if you decide to make your own text adventure in it, do let me know.

Post a Comment

RSS feed for comments on this post · TrackBack URL