This part of Vampire Survivors has been 2 months in the making, and it contains enough content to be split into 3 or 4 parts. Nevertheless, I decided to release it as a single part because there was no natural place I could split this part into.
This part contains a lot of advanced coding concepts that can help you take your programming to the next level if you've been following our series, because it contains a lot of reorganising of code to make our game easier to manage. At higher levels, good coding is often a matter of organisation rather than knowledge, because organising your codebase well will allow you to very easily create new content; and a poorly-organised codebase will be hell to work with when you create a lot of content. Hence, this part will be very helpful to those of you looking to take your coding skills to the next level.
In Part 15 of the Vampire Survivors series, we will be covering the rework of the weapon system so that it will be more flexible and intuitive to use. In essence, we are making the weapon system more integrated, so that our weapon data files will not be spread across multiple prefabs and data files:
Instead, we want all our level data, as well as our weapon evolution data, to all be kept within a single data file:
I’ve tried changing the name/description of some weapons but it doesn’t change in game. How can I fix that? I’m sure I wrote all the code correctly.
Did you change it in the WeaponData object? Or somewhere else?
yes I did, changed it in the base stats but it doesn’t change in game.
Can you create a topic about it in the forums? Take a screenshot of your weapon data asset and post there.
Looking forward to the videos, keep up the great work!
Are you going to do more waves as well for the enemies and explain how to add enemies?
I also noticed a few bugs like that the health potion is not giving anymore health when picked up.
And some of the experience gems some times suddenly moving out of the screen instead to the character.
Thanks Frank. Sorry I missed your comment on the post!
Yes, the next thing I will work on after this is done is the spawn system. I’ll fix the health system in Part 16 as well.
I’ve coded a fix for the experience gem here as well: https://blog.terresquall.com/community/topic/part-6-magnet-problem/