Another thing you can see on the screen-shot is that I now have doors! You can open them, just by pressing O when you are next to them (no need to specify direction) and close them with C in the same way. They block your view, stop monsters, look cool and fill your log with "the door opens" times two hundred. Later, I am going to implement locked doors, but they are going to be handled a bit differently then other rogue-likes. I don't want doors to randomly be generated locked, I rather want that is the player finds a locked door, its probably a warning that there is something dangerous inside, or at least something special. That way, kicking doors won't be a useless waste of time, but give the player time to think if the actually wants to enter this dangerous room.
The third thing I did was make a weight system. Now, if you are carrying more then a certain amount of stuff (depending on your strength), you speed will drop by 25%. I don't actually have a way to train strength right now, and armor is not yet counted for weight.
I also implemented food. Its not very complicated right now, but if your hunger drops to much, you get slowed, and if its to high, you get slowed also. The lowest total speed you get from this is about 45%, meaning the average monster can do 2 moves+10% chance on one extra move for every one of your turns. Ill probably have to adjust these numbers later, but yea, it works.
I also made a few minor changes to the level generation code, to make passageways more windy. This introduces a few bugs, where doors are generated at corners, but those will be fixed soon.
My to do list for tomorrow:
- Implement locked doors and special rooms
- get rid of the green rooms for normal generation
- a way to train strength
- more work on the lighting system
To do later:
- chests/containers
- money/gems
- shops
- dungeon levels should be coming soon
This cool looking police guy doesn't want anybody entering the dungeon: