I am caught up in something else and have been slowing down these days.
The situation has become untenable: I feel the need to write tests and modularize the code further.
Things break and I don’t know why.
Anyway, I manage to create a small inventory by deciding to treat the inventory as a dictionary and inserting an object into it every time it is printed in the overlay.
There’s a problem: exits are added to the inventory, that it is not what we want, but never mind: this is a problem I will fix another time.
I also decide to implement the fact that enemies counter-attack by assigning each monster an attack and a defense and making it so that when they counter-attack and when I attack, according to small mathematical formulas the hp is decreased or not.
To get around the regeneration problem I temporarily decide to make the character recover one hp every time he moves.
I also decide to implement the fact that the character can die: if the hp is less than 0, the game ends. To start a new game, just press the “R” key.
The game is starting to take shape, but I have to fix some bugs and make it more playable, for now I’d like to polish on textures and make the game more enjoyable, so I manage to understand when to use border’s tileset and when not.
Other wishable features are:
- handle items in the inventory
- fix enemies texture bug
- add proper tiles for the border in the map
- invent a story
- add a boss / boss room
I am very happy with the progress I made, but I have to keep going.