Exemplo n.º 1
0
 private static int GetRow(Transform2 transform)
 {
     return((int)Math.Round((transform.ToScale(1).Location.Y - transform.Size.Height / 2) / TileSize.Int));
 }
Exemplo n.º 2
0
 private static int GetColumn(Transform2 transform)
 {
     return((int)Math.Round((transform.ToScale(1).Location.X - transform.Size.Width / 2) / TileSize.Int));
 }