Move initialization to it's own procedure.
Use init-2d in all examples.
Use predefined tile layer in tilemap example.