@TempodiBasic @bplus @SpriggsySpriggs @FellippeHeitor @OldMoses Well, here is the latest version.
It is "playable" in that it lets you walk around the dungeon.
There are still some features that need to be implemented to make it a "real" game.
But my life is getting busy lately and I have to put this down for a bit, and get away from this computer!
So as "closure" I am putting this out there for you to hopefully enjoy.
Controls:
arrow keys = move n/s/e/w
K = climb down ladder to next dungeon
T = talk to NPCs / monsters
L = look (at monsters + objects)
G = get items (currently just treasure chests with random items)
R = ready weapon
W = wear armor
U = use item (currently just healing potion)
0-9 = set up for various temporary test/debugging (reset inventory, increase/decrease hp, etc.)
Not implemented yet:
D = drop item
A = attack
Z = teleport (just to replicate the 50 line Rogue game, won't be in final game)
TO DO:
Drop item is probably the most important since your inventory can become "full".
It's still missing one main feature, which is combat.
The first version would just be a simple Attack command.
If the player has a weapon, they can do damage.
Later the different weapons would cause varying amounts of damage (along with the player's attributes).
If the player has armor, they survive an attack which lowers their hit points.
Without armor, any attack kills the player.
Later the different armors would protect the player differently (along with the player's attributes).
There are a million other features, which are listed in the comments in the code.
The big thing is that it should eventually be a construction set, that lets someone EASILY create their own world and characters and puzzles and quests, kind of a mix between classic Ultima and Infocom text adventures. The Infocom part is not implemented yet at all, but each square on the map should eventually have the same kind of features a "room" does in an Infcom game, with puzzles and triggers, and a simple (2-word verb+noun) parser.
However, another way I might go with this (or concurrently) is that it could serve as a simple "animated map" for pen + paper D&D games. That way the players can walk around in the virtual world on a screen. Maybe 2 laptops hooked together with simple networking would let the DM see the whole map, and the players just see what their characters see. Maybe it would have tools to keep track of the inventory, stats, etc. and do the die rolls and all that. So instead of a full-fledged RPG, it would be more like a D&D "helper" to remove the drudgery? Just an idea.
Enjoy and thank you guys for your help.