So the original Super Mario Bros (1985) used a technique where they would build a level using tilesets. Each Tile or Tileset would appear if it is on Screen and would disappear when it is off Screen so it would save memory and so that the game would be at least 40KB
I got inspiration from the original Super Mario Bros