Translated by AI — Claude Opus 4.6, Mar 2026

Portals for Moving Between Maps

There are many ways to implement a portal, but the simplest method would be to replace the currently visible map information with the new desired destination. The principle is as follows:

  1. At the start, you are on Map 1. From here, you want to move to Map 2.
  2. Moving to Map 2 is as simple as changing the reference of the currently displayed map to Map 2.
    • portal-memory-1{width=500}
  3. Now suppose you want to move to Map 3. However, Map 3 has not yet been loaded into memory. In this case, Map 3 must be newly loaded into memory. If the allocated memory is small or memory is insufficient, it may be necessary to delete the information of previously loaded maps and create new space to load the new map into memory. Loading a new map into memory can take time, in which case the game may display a loading screen.
    • portal-memory-2{width=500}
    • portal-memory-3{width=500}
  4. After the new map has been successfully loaded into memory, the map transition is completed by changing the reference of the currently displayed map to the new map.
    • portal-memory-4{width=500}