Just finished writing and some code allowing player to go up and down the stairs! What does it mean? More exploring! Even more randomized dungeon!
Now, more precise description of this not-so-little addition. There are going to spawn two more types of symbols in the dungeon: ▲ (stairs leading up) and ▼ (down).
Once player goes up or down, there is only one way back to the main floor of the dungeon. There is no variable that checks on which floor player is (I mean the number of floors above/below the main floor). Let me describe it with a picture (:
Why does it work like that? Because every floor is a separate room with different coordinates. Additionally, my code does not count how many cells player has traveled in each direction.
The only bug I've found so far is related to the conditional formatting. Luckily, that's not a serious problem!
No comments:
Post a Comment