Written By ·Latency

Bounty Bros. #12: Two And A Half Dimensions

A slew of updates and a method on handling another half dimension 💫️.

A slew of updates and a method on handling another half dimension 💫️.

A slew of small updates have been made this month. We now have an enemy wave spawning system! This is a fundamental piece of our level design and gets us much closer to being able to nail down our base mechanics.

Other changes include some updates to the editor UI that allow starting a cutscene or an enemy wave on any map anytime. I also integrated a piece that resizes the game viewport and UI with the PC window size adding black bars where necessary to maintain the aspect ratio and camera size of the game. This pattern makes UI management much easier, allowing you to mostly just say exactly where you want your UI elements to go, since the viewport bounds effectively never change.

Another significant new feature is the map collision calculation. Bounty Bros. is technically what you call a 2.5D game. Since we decided to make the characters taller than our 16x16 tiles, we end up with this strange middle ground between 2D and 3D where the character's head and gun is supposed to be above ground but the third dimension ( height ) is kind of slapped onto the other two. In order to maintain a semblance of visual-to-physical interaction, we did some tricks to make the game behave more how you expect. In a nutshell the solution so far is to have a couple of collision groups, one called "stalagmite" and one called "stalactite" which are really just "collision at height 0" and "collision at height 1". If it collides with "stalactite" (remember the rhyme, stalactites stick tight to the ceiling...) then the object is hovering, like a bat or a bullet. If it collides with "stalagmite" (...stalacmites might grow up to meet them ) then the object is on the ground, like a snake or the character's feet. What we do with the maps is calculate which tile collisions are surrounded by other tiles, and put them in the "stalactite" group, and leave the rest on the "stalagmite" group. This basically leaves outer-edge tiles low and inner-surrounded tiles high, kind of like a pyramid. This, as you will see, allows you to shoot more consistently around the corners of walls relative to where your feet are and prevents your bullets from hitting those northern walls that your character is penetrating in 2D. It’s designed particularly for this game but so far has been an effective strategy. As a later improvement I'll likely use quarter size tiles to make it a little harder to shoot through walls.

The longer I make this game, the more unexpected nuances and decisions in design have to be made, and the more glad I am that we're aiming for such a small game. At the same time as being so small though, I think Bounty Bros. will still be 10x the stepping stone that Striker Ball was and pave the way for much greater development speeds in Bones.

Back to Blog

Related Posts

View All Posts »
Over The Shoulder: James Sprite Part 4

Over The Shoulder: James Sprite Part 4

Here we come to the conclusion of the over the shoulder, finally getting to export James with all his animations and see them functioning in Bones game engine!