PICO-8: Map Screens
This cart demonstrates how to have different map screens that follows the player around the map. It is heavily commented so you can pull apart how this is being achieved.
Notes: The basic idea is that the camera is usually pinned to 0,0. We also track which 16x16 section of the map the player is standing on, and pin the camera to show that section of the map.
Save this file to your PICO-8 carts folder. Then load it by typing
load map_screens in the command line mode of PICO-8.