Honestly I am just here to click the like button on cute animal pictures tho
But this effectively just does the "for each square away from origin, draw that many diagonals" per each range.
But this effectively just does the "for each square away from origin, draw that many diagonals" per each range.
Attack ranges: For a range 2, we start at 2 squares above the origin, then iterate through that range, and move diagonal each iteration (I should have done 3 to show it better oops). then we do that to the east, west, & south
Attack ranges: For a range 2, we start at 2 squares above the origin, then iterate through that range, and move diagonal each iteration (I should have done 3 to show it better oops). then we do that to the east, west, & south
I didnt know exactly how to visualize it costing 2, so I filled it halfway with each step as it went.
doing this from the origin out to every node will give the character full movement.
I didnt know exactly how to visualize it costing 2, so I filled it halfway with each step as it went.
doing this from the origin out to every node will give the character full movement.
Using the tree structure lets us place obstacles in the path, and will automatically adjust to show every possible movement available to the player. This shows how it works with a blocked tile to the south, indicated by a red X.
Using the tree structure lets us place obstacles in the path, and will automatically adjust to show every possible movement available to the player. This shows how it works with a blocked tile to the south, indicated by a red X.
So movement works using a tree structure, each node checks the next & subtracts total movement values.
So movement works using a tree structure, each node checks the next & subtracts total movement values.
Me: “Agreed!”
Me: “Agreed!”
If you feel like giving it a whirl click the link and download the rom!
tibzilla.itch.io/david-smiths...
#GBDev #gameboy #hombrew #HotDogs
If you feel like giving it a whirl click the link and download the rom!
tibzilla.itch.io/david-smiths...
#GBDev #gameboy #hombrew #HotDogs