LOG 15: MAINLY BUG FIXES AND SOME MINOR NEW FEATURES
NEW FEATURES
Better life/strength display
A feature that was originally used for debugging has turned out as a good feature for the game overall. It always displays your and the enemies HP, and attack power (even though the attack damage is partly random which i have to note somewhere so there will be no confusion)
An item descriptor that tells you what the item you are looking at currently does
There is only one item to be used in the inventory right now so you can only see what the heal item does but more will be added in the future.
BUG FIXES
Memory unsafety fixed
There was an issue with unsafe memory access if the items in the inventory where bigger than 10. My fix is that if you have more than 10 items and you pick up a new one, the new item will replace the first item, the next one the second one etc. It also resolved a smaller issue with blank inventory space that ate up inventory space even though it was empty.
Items not working fixed
The functions responsible for changing your hp, healing you or making you stronger hat an issue with their pointer assignment (they were pointing to the wrong variable) which i fixed for all function which work great now.
Bug with doors acting the same as item pickups
Because of something what seemed to be a typo (a function returned 1 instead of 0), if you tried to go through a door and you haven’t beaten every enemy, instead of nothing happening you got a free item (which turned out to be a great testing feature for items, because i can get many items fast and easily). The fix was really easy (just swap the 1 for a 0)
Health bar not drawing properly
Because of a badly implemented function i added in the past which turned out to be completely redundant (got cut out) the current hp weren’t imported properly to the function that handles printing out the health bar which i fixed by using another variable responsible for storing the current hp of the player
Misc fixes
After having to audit most of the code again i noticed that there were some issues with the code (partly because it was fine as it was when it was written, part was just sloppy implementation) which i also fixed even though most of it was minor.
CURRENT PLANS FOR THE FUTURE
More items that can be used in battle
MORE ENEMIES!!!
Im planning to add more and stronger enemies in the future even though that will probably will be one of the biggest newfeatures as it requires rewriting most of the battle and map logic
Enemies getting stronger if you get farther for better progression
Overall some more optimization and bug fixes (there is always something to be fixed ;) )