Project RBH DevLog 0113 (Patreon)
Content
I fixed that bug I mentioned last week, but I haven’t yet finished those last four rooms. For those keeping count at home, that’s two of the four-door rooms and two of the three-door rooms. Those ones are especially tricky for me because of how I wants the rooms laid out. They should have enough cover that there is cover but not so much that you aren’t on the move. I can make a winding path from one door to another, but adding in more doors complicates that.
As for the bug, that was caused by the code checking to see if an area was suitable for spawning enemies being a bit too good at it and being unable to find anything. I turned down the radius and called it a day. However, that showed me a way that code could be polished a bit more. You might remember that the origin point for characters—like, say, the enemies—is the bottom center of the sprite. However, this is also the lowest part of their hitbox. Using it as the center for a circle means that the circle is a bit lopsided. I need to adjust that check to better compensate for the hitbox’s location.
Plus, if I do that, I can also do it for the spawning animation which looks off-center for the same reason.
Until Next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!