Progress Update 8-June-19

These last couple days I’ve started work on the star map. The idea is that a random number of stars, their planets, and the planets moons are generated. The numbers of star systems is somewhere between 15 and 20, maybe more or less, I’ll tweak it later. These are then arranged into “steps” according to how many minimum jumps I want the player to take to get from the current system to the destination system.

So if there were 15 stars generated, and I wanted 5 steps, the process would go as follows:

  1. Take the first star and put it on it’s own “step”, it’s the start
  2. Take the last star, and put it on it’s own “step”, it’s the destination the player is trying to reach
  3. Divide the remainder, in this case 13, by the number of steps I want, 3 stars per step.
  4. These means the second “step”, after the first, has 3 stars. So initially the player has three choices to move to
  5. The next step has 3, then another 3, then another 3
  6. The final step before the end step has 1 star, so the player must pass through it
  7. Then the stars are randomly “connected” so that the player can always reach every star from the step above, but every star may not lead to the next step, so you have to move horizontally to a neighbouring star.

In-game the reasoning is that the computer has calculated what it thinks are the most likely jumps to get home after the player has been blasted off into space. Then the player can make their moves to get home, each time coming across random events. Each system may give the player something beneficial, or something bad.

It may not look like much, but here’s the work in progress:

I’m really very happy with the pixel-perfect lines and circles.

The names of the stars is randomly generated. I based the name list off how I understand stars are named. Firstly, they can be named after a constellation or a catalog designator, these are just stored in a big list. I put the list together from wikipedia. Then it’s just a dash and a randomly generated number. I like the results, it seems really spacey.

Leave a Reply

Your email address will not be published. Required fields are marked *