I was looking into tile-based platformer gaming code and examined how the map/backgrounds are generated. Here is one of the examples I found on how a 2D array is populated to generate a map:char map[12][12] = {
{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
{2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2},
{2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2},
{2, 1, 1, 1, ...