• Register

Explore an infinite procedurally generated universe, alive with memorable alien races, fantastic technologies, and deadly monsters! A sci-fi turn-based strategy RPG with a persistent world that's different every time you start a new game. A.I. is released! Play as long as you want in an ever-expanding universe, or pursue any one of 9 different paths to victory. Exploration, Combat, Quests, and Loot!

Post news Report RSS New Random Treasure Rooms!

I recently added a chance to discover treasure rooms on shipwrecks in Approaching Infinity. They are randomly placed lock and key puzzles, both high risk and high reward.

Posted by on

I was playing pirates with my 4 year old daughter, and she buried some treasure for us to find.
She had put a lock on the treasure, and we also had to find the key. LIGHTBULB! I started thinking
about adventure games where you need the red key to unlock the red chest, etc. Then I
started thinking about force fields and switches in Approaching Infinity.


I realized that I could randomly place force-fielded areas on shipwrecks at random. Algorithms
started messing around in my head, and while she was drawing a treasure map, I quickly
wrote down the steps i would need to create Treasure Rooms! (I do this sort of thing a lot.
I wrote down a text-sorting algorithm at work a few nights ago. If's and for's and while's
on a little slip of paper.)


Now it's possible to find areas of shipwrecks that are cordoned off by force fields,
that are also full of treasure and monsters. They appear randomly, and can be both
challenging and rewarding.


The basic idea is this:

  • Find an isolated area of the ship that is not near the player's start position.
  • Make sure it has an appropriate amount of empty space
  • That will be the treasure room's location
  • Then use dijkstra maps to find a place that is both far from the treasure, and far from the player.
  • That's where the switch goes. Place it now. Then give it a guardian ;)
  • Surround the treasure room with a force field, and then fill it with loot and monsters!

That's it. So thanks, little girl, you are a continuing inspiration! And when Beta 04 comes out this weekend, you might just find some of these ;)

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: