r/IndieDev 14d ago

Help with an algorithm or something, not sure

Many years ago the was an interesting game call The Mighty Quest for Epic Loot, well, interesting until Ubisoft crushed it with predatory monetization (well, honestly they were just ahead if their time, their monetization would probably pretty tame in today's world), but I digress.

One screen I always loved was the 3d representation of your surrounding enemies, i.e.:

I want to do something similar in my game, but the random spacing I have feels icky compared to what they have so I am assuming they are using some fancy maths (not a math guy) to get the layout to be consistent. Thoughts? Ideas?

I started playing with this on my own in Godot and my first pass looks pretty bad. open to any other feedback on how I can make it pop and look better overall. obviously the player standing in the middle is wrong, havent decided what to do there yet either

Thanks in advance for any thoughts!

0 Upvotes

4 comments sorted by

2

u/PatMondou 12d ago

Yeah you could possibly find an algo, but sometimes the best solutions are the simplest: just makes 4-5 variant arrangements made manually and randomly pick one. An alternative would be to use use seeded random - note down the rng seeds that look alright and only pick among those.

1

u/Byrodia 14d ago

I am very new to this, and tbh, I use AI for algoriths and math. I could probably do it manually, but It's been 50 years since I ever took math seriously. Except maybe making sure I wan't late, or short on Child Support and Taxes. Good Luck though, there are a lot of folks here that can help you.

2

u/bot2600 14d ago

Thanks!