Project RBH DevLog 0137 (Patreon)
Content
One of these days I am going to come up with a name for the object that shoots bullets in random direction for you. But I do at least have it connected to a working weapon. It was a fun design challenge because it plays very differently from the other weapons, rapidly filling a room with bullets moving in random directions. Since it can achieve such volume of projectiles (And you can drop them directly on enemies by shooting them) each individual bullets needed to do very little damage to keep it from trivializing every enemy encounter. I’m pretty satisfied with it right now but I’m sure I won’t really know without proper playtesting. Such is the way of game design.
There was some interesting coding with it though. A problem I noticed a while back but never got around to resolving is that spawning objects where a bullet hits something can cause collision issues. After all, if the bullet collision detected a wall, by definition, their collisions overlapped. This can easily make it so the summon appears lodged just into the wall enough to have every bullet hit that same wall instead of doing anything useful. Luckily, I realized something about that collision code—I use it to determine where something will be based on its speed and direction, which means I can use that exact same math to put the summon where the bullet was in the previous frame. Now the summon appears where it can actually do things.
Until Next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!