wasm-space-program icon indicating copy to clipboard operation
wasm-space-program copied to clipboard

Add wormholes between solar systems to allow agents to spread across the universe

Open carlsverre opened this issue 3 years ago • 0 comments

Main issue to consider is what happens when one solar system gets too large which could slow things down. We probably need a population cap on each solar system to ensure this doesn't happen.

rough notes

to generate neighbors, use veroni and connect solar systems on either side of every edge

for connections, consider a new wormholes table to track sid -> sid then pack all the edges in the current system (similar to neighbors) and pass it into the step function as another input

alternatively, add a new entity kind and just add the edges directly to the entities table this is the easiest solution, but requires improving cleanup routines/development workflow to not delete the wormholes

then the universe map needs to know about the wormholes in order to render edges bewtween each system

carlsverre avatar Jun 29 '22 18:06 carlsverre