Project RBH Devlog 0022 (Patreon)
Content
Well it’s Labor Day so I better make this quick before I diminish my power of collective bargaining.
I’ll just come out and say it: last week was a complete success
The system is deceptively simple, making use of the same array randomization that I was using for the previous version with the tiny menu in the corner of the screen. Right now, the system is manually drawing a rectangle instead of using a sprite, but I can change that later easily, so I’ll have that to look forward to, but it’s good enough for now. And if the mouse is inside one of those rectangles, they change colors, as well as changing colors when they’re clicked on.
I don’t have too much to say about the code that makes the Upgrades actually upgrade your bullets because it’s barely changed from the previous version. However, I have fixed the removal system, so every upgrade can now be set to have a finite number of uses before it stops appearing in the list. Previously, due to a coding oversight, it would remove the wrong upgrades from the list, which I hadn’t noticed until I had all my debug code in place as well as the Upgrades actually visually listing how many times I’m supposed to be able to pick them. Basically, my For Loop that removes the perks from the list was iterating past where I needed it. Always remember that if you change the length of the For Loop you’re going to have to change the iterated variable as well!
This also means that it’s possible to run out of upgrades, crashing the game. My current solution is hardly the most elegant but it’s fine. Several powerups have been set to be ‘Unlimited’, meaning that they’ll never run out. Like I said, hardly the most elegant, but it works.
I also fixed a bug that I had in that previous menu system that appeared again. See, that last menu was supposed to be in the center of the screen, and not the bottom corner. This version, when I first set it up, had the collision for the mouse and the images set up inconsistently. The mouse needed to be below the card and to the right for it to recognize you clicking on it. Turns out that the ‘Room’ I had set up for the menu wasn’t set to the right dimensions for the camera and that was throwing everything off. Easy fix.
Not that you can see it in the GIF above because I also copied the system and tweaked it so that I could bring up the Upgrade Selection Menu at any time. This means I can dynamically award Upgrades to players, or have shops that sell you a free pull from the Upgrade pool, etc. It’s also an extremely useful bugtesting tool, so I can bring up that menu whenever I want.
Which brings us to this week and what I’ll be doing. Which is, somewhat ironically, not anything in-engine. Instead, this week will be spent in Excel making a spreadsheet so that I can plan out the game’s Upgrades, what they’ll do, and how many times you can pick any of them. Once I’ve done that, it will be much easier for me to organize the frankly alarming amount of data I’ll be writing into the Upgrade system so that they’ll all be actually available for Player use.
And since I now can show their descriptions, this means I can have more complicated upgrades that have different effects, like increasing one stat while decreasing another. The goal for the final build of this project is over 100 upgrades, probably closer to 120 or 150.
That’s a lot of spreadsheet entries.
Until next Devlog!
-DeusVerve
Special thanks to my Tier 3 Patrons, Haelerin and Christos Kempf!