I am developing a minigame in Processing and I am in a dilemma, I have a functional exp bar to some extent, when the bar reaches the max of experience it resets to 0 (which is fine) but the issue is that for example I have this case:
-exp current: 1000
-exp to next level: 10
and I kill a npc that gives me 1000 of exp
The idea is to add that difference to the next level and (in case it happens) raise more levels with that difference, let's say you pass to level 3 of one.
If anyone has any ideas, read them!
Thank you very much! if part of the code is needed, let me know