Skip to main content

Random Generation That's Not So Random

While I do want the Galliventurer universe to be procedurally & randomly generated, I don't want it to be truly random. There needs to be a modicum of probability involved. Some weighting so that some things are rarer than others. After all we can have too many diamond covered planets or uranium based suns - as you can see I haven't actually started thinking too much about the composition of the planets, stars, etc.




Keeping this probability based random selection in mind, I'm going to be using a dynamically weighted series of arrays to randomly select properties for entities in the Galliventurer universe. Using something very similar to (or based on) this article by Michael Czechowski https://observablehq.com/@nextlevelshit/rejection-sampling-in-javascript. The main bit of complexity here will be the values of a randomly selected property will affect the weights of the next selection. For example the size of a star will greatly change the weight of the probabilities for the temperature (which determines it's colour). Another example would be a star that is randomly selected to be large, will greatly skew the weights to have more orbiting planetary bodies.

Now off to determine all the things that need to go into the lists, and what their initial weights for probability should be, wish me luck. 

Comments

  1. Note to self - try to make the next post not be publish near midnight 🤦‍♂️🥃

    ReplyDelete

Post a Comment

Popular posts from this blog

No Language

I worry there isn't words to describe the depth of my feelings. One four letter word isn't enough. It feels too small, too fragile, to contain such an ache. A strand that cuts through to the very core of my soul and anchors me to you. The breadth of comfort with you, the depth of my entwinement cannot be limited to such a word. Sitting at the center of my life, you ground me when the rigors of everyday life threaten to throw me asunder to the void. I am yours always, you are my forever.

Where's the Fun?

When Galliventurer was first conceived in the bowels of my brain it was during a particularly good session of playing No Man's Sky. I had just traversed several different planets finding old ruins and exploring as I went. The exhilaration I felt zipping around in space and then landing to explore - it was this feeling and the want to continue that on my phone, which persisted for days & weeks, was the main reason I even considered starting development on Galliventurer. No Man's Sky is possibly one of the most ambitious, fully realised games in history - yes it took them a while to get there, but I don't see Star Citizen releasing anytime soon - so it goes without saying Galliventurer will not be anywhere near that ambitious. A small glimmer of space flight amongst the stars with endless exploration. But then what? Subin Kim's freighter concept This has been a constant thorn in my frontal lobe since my first flight through the current build of the game. Sure you ca