Posted March 13, 2023 by Cake
TLDR: Continued working on the spell system, added more wizard spells and skills. Tooltips mostly fixed.
Hello everyone, this week I continued working on the new spell system.
When you unlock the wizard, you'll get access to the spell book menu. In this menu, you can add spells to your slot(s). You start with only one slot and one spell: Condenser. This spell converts light into condensed light -- a pseudo-mana mechanic. Condensed light is used to cast other spells.
To add a spell to the slot, simply press a spell at the bottom of the spell slots in the spell book. This will add the spell to the first empty slot, from left to right.
To remove a spell from a slot, double-click the spell slot. You can only remove spells if they have three or fewer seconds of cooldown remaining. This is to prevent removing and adding high-cooldown spells, making their cooldown redundant.
Since spells are automatically cast and have costs, you can pause a spell slot by right-clicking the spell slots. This will make the spell slot yellow, indicating that it is paused. The cooldown will continue ticking, but the spell won't be cast when the cooldown is finished.
Spells that can't be cast due to their costs exceeding your current resources are colored red.
All this information will eventually be present in-game through hints and/or a tutorial.
There are currently four spells:
I added three new wizard skills:
The first three wizard skills also have new custom sprites made by me.
I refactored the tooltip system, and now the tooltips should no longer be persistent when you aren't hovering over anything.
There is a known issue of tooltips going out of the screen when you change the game resolution size. I don't have an immediate fix for this yet, so if you're playing, please avoid changing the size of the game window. Sorry for the inconvenience.
That's more or less it for this week. I hope you have a great day/night, and I'll see you next week!