Skip to main content
4 of 5
Proofreading pass: clarified title, wording, and formatting.
Anko
  • 13.5k
  • 10
  • 56
  • 82

How can I connect multiple explorable regions into one large map?

I am planning a 2-D science fiction game involving spaceships. A major thing that I am having trouble figuring out is how to create a 2-d array of smaller maps that the player can explore.

My inspiration is the Flash game Starfighter: Disputed Galaxy:

Map example

The map here is composed of a 2-D array containing smaller maps called sectors. Each sector is connected to surrounding sectors, such that when the player moves to the edge of a sector, they go to the next.

For example, if I was in sector [05][01] and I move up until I cross the edge, I am taken to sector [06][01], then I go to the right, crossing the right edge of the sector, I am now taken to sector [06][02].

However, if I am at a sector like [0][5] and attempt to go down, It will not allow me to cross the edge line of the sector. In other words, a huge map made out of smaller maps.

If you need more details, just ask.