Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Thanks, that’s generous of you. I actually had very minimal time to develop a good way to detect connections. And when I was done, unfortunately, I only had 15 minutes left to create at least 10 levels. 
However, once this was done, it was easy to create the corresponding point in the grid (which I designed to fit the array) by writing something like this: 

public static readonly int[][][] Levels = new int[][][]
{
    // Level 1 (2x2)
    new int[][] 
    {
        new int[] { 1, 0 },
        new int[] { 0, 1 }
    },
    // Level 2 (3x3)
    new int[][] 
    {
        new int[] { 1, 0, 2 },
        new int[] { 0, 0, 0 },
        new int[] { 1, 0, 2 }
    },
    // Level 3 (3x3)
    new int[][] 
    {
        new int[] { 3, 0, 1 },
        new int[] { 0, 3, 0 },
        new int[] { 2, 2, 1 }
    },
    // Level 4 (4x4)
    new int[][] 
    {
        new int[] { 1, 0, 0, 2 },
        new int[] { 0, 2, 3, 0 },
        new int[] { 0, 0, 1, 0 },
        new int[] { 3, 0, 0, 0 }
    },
    //...
};