Hi! I'm back with some cool stuff! But before I talk about this low quality gif, there are a few other things I did in these past 3 weeks:
The stats now have a use! It's nothing terribly complicated : Your character 's affinity for a certain type of magic (it's color) affects the spell. Damaging spells deal more damage, buffs/debuffs last longer, that kind of stuff. Every monster also has resistances/weaknesses to each type of magic, which affect the damage received. Finally, both sides have a defense stat, which obviously decreases damage taken the higher it is.
The next thing I did was to improve the way the damages are dealt, as you can see on the gif. I noticed fights had a tendency to end pretty abruptly, and I wanted the player (and the monster) to have a chance to live through a fatal attack, and that skull timer is my solution to the problem! Here is how it works. Whenever you or the monster take damage (or heals), the skull timer appears. If it opens completely, the damage will be applied, and there is nothing that can be done about it. However, it is possible to heal yourself out of potential damage before the timer runs out, or to increase the number of damage by keeping up your attacks to have it dealt all at once. The number shown to the left of the skull tell you, from top to bottom, how much damage the last attack added to the count, how much damage will actually be taken when the timer runs out, and how many HP will be left after that. And that's about it! Also I think it looks cool. Maybe you already noticed, but I also implemented some particles when you take a hit, and there are different ones when you heal.
Other than that, I've also been working on another monstergirl, and I'm really pleased with her concept. I know I said I would focus on coding, but I really wanted to do it, so I did. It's only the concept though, that's why it didn't take too much time. I'm probably not going to actually draw her anytime soon, but you know, it's there, I did it, I'm pleased. :)
Finally, I have been working on a post fight result screen. The idea is that there will be a little animation to show who won the fight. If you win, you get to see how much XP you got and who leveled up, and items you found. If not, there will be options to retry, give up, and some more, but I'll expand on that next time, when I can show it off.
And I believe that's all for now! I hope you enjoyed this update, see you in 3 weeks! :)