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 0, 0, 2, 0, 0, 0, 0, 2 },
{ 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 },
{ 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 2 },
{ 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2 },
{ 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 },
},
{ -- y -3
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }, -- x
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }, -- empty top layer for jumping
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }, -- 255 no collision
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }, -- 255 is path and top order empty space
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
{ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
}
}