Vacuum spread in a tile-based space game (like in Faster Than Light game)
- by Reeze
I've a space game with tilemap that looks like this (simplified):
Map view - from top (like in SimCity 1)
0 - room space, 1 - some kind of wall, 8 - "lock" beetween rooms
public int[,] _layer = new int[,]
{
{ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,…