Skip to main content
Tweeted twitter.com/StackGameDev/status/843195720874233856
added 132 characters in body
Source Link
House
  • 73.5k
  • 17
  • 188
  • 276

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 askI'd like to know how to implement those transitions. How do I programmatically determine which sector to move to (or not allow movement) when crossing over a boundary?

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.

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.

I'd like to know how to implement those transitions. How do I programmatically determine which sector to move to (or not allow movement) when crossing over a boundary?

Post Reopened by Anko, MAnd, House
Proofreading pass: clarified title, wording, and formatting.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

How do youcan I connect multiple 2-D mapsexplorable regions into one large map?

I am planning on making a 2-D Science-fictionscience fiction game involving spaceships and One of the. A major thingsthing that I am having trouble figuring out is how to create a 2-d array of smaller maps that the player can explore. (Similar to that old(and possibly forgotten) flash game Starfighter: Disputed Galaxy)

-Update- Okay. Isince I was asked to be more descriptive about what I want to do (and the fact that I could have given a description on how it worked) here My inspiration is what I want to try and do:the Flash game Starfighter: Disputed Galaxy:

Map example

The map here is composed of a 2-D array composed ofcontaining smaller maps called sectorssectors. Each Each sector is connected to othersurrounding sectors and, such that when you movethe player moves to the edge of a sector, youthey go to the next. 

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

However, if I am at a sector like [0][5][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 guys need more details, I am willing to give them to youjust ask.

How do you connect multiple 2-D maps into one large map?

I am planning on making a 2-D Science-fiction game involving spaceships and One of the major things that I am having trouble figuring out is how to create a 2-d array of smaller maps that the player can explore. (Similar to that old(and possibly forgotten) flash game Starfighter: Disputed Galaxy)

-Update- Okay. Isince I was asked to be more descriptive about what I want to do (and the fact that I could have given a description on how it worked) here is what I want to try and do: Map example

The map here is composed of a 2-D array composed of smaller maps called sectors. Each sector is connected to other sectors and when you move to the edge of a sector, you 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 guys need more details, I am willing to give them to you.

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.

better description on what I want to make.
Link

Java- How do you connect multiple 2-D mappingmaps into one large map?

better description on what I want to make.
Source Link
Loading
Post Closed as "Not suitable for this site" by House
Source Link
Loading