image just as an example, player can only see like 2-3 tiles inside the ground, wondering how its done ?
image just as an example, player can only see like 2-3 tiles inside the ground, wondering how its done ?
Thanks for that 1, now i have another question, how liquid is done, like water flowing downwards in 2d
example video
jump to 12:21
Liquid simulation can be straightforward.
Or it can be complex.
http://dwarffortresswiki.org/index.php/DF2014:Flow
http://dwarffortresswiki.org/index.php/DF2014:Pressure
Dwarf Fortress implements water in the simple way when the water has no other bodies of water blocking it, but as soon as it encounters another body of water it tracks the path it needs to find the other side of that body of water and if conditions are correct it will move there. This allows the game to have a form of water pressure.
That’s about the most you’ll find tutorial-wise for this subject. For example code go find a falling sand game like Powder Toy.
Thanks alot, ill study them.
Minor problem, how to have that “water” draw on unity ? We cannot use a game object for every single droplet of water.
Typically to draw water you create a mesh that you modify at runtime.
You can also use a particle effect if you like.