💦 CREATE AND FUCK YOUR OWN AI CUMSLUT 🔥 TRY NOW ♥
Create AI Cumsluts 💦
March 26, 2017

Hex Map 15: Distances

Now that we can create nice maps, let's focus on figuring out how long it would take to travel across it. In this tutorial, we'll figure out the shortest distance from all cells to a selected cell.

Hex Map 15, a Unity C# Tutorial (Catlikecoding)

Comments (2)

J
Joris van Eijden · February 16, 2019

Why are rivers not blocked? Is that part of a later tutorial? Are they special in some way?

C
Catlike Coding · February 16, 2019

You mean rivers not blocking movement? They represent small rivers that are easily crossed. Because we put them in the center of tiles, a unit isn't on a specific side of a river, so it's not possible to pinpoint a place where a river gets crossed. At best, we could make the whole tile with a river in it not navigable, but it's better to just use a submerged tile for that.