forums | blogs | polls | tutorials | downloads | rules | help

Add new comment

Have Random Object Placement Figured out

I figured out how to implement random object placement. It's all in my head right now. The user will be able to have settings for what I'm calling patterns, which can also be saved to a text file. The only problem with the approach I'm taking is that it will take time to get the object placement data. The issue I was facing was no info on the height of nodes, so I thought it will be best to place objects on each type of node and use the points from those objects as seeds for random placement. Each node will have an overall chance to spawn in one of the random seeds. The number of times it can loop over the map can be set by the user. I may add an individual node increase and decrease to the algorithm. Some nodes need less objects on them than others such as paths. I've written a bit more down and figured out more stuff, but thought I'd write a quick blog.

I will write it in python. I'm mostly a functional programmer, so it will have that sort of style. I will have to learn the gui for python. I thought about wrapping it in electron, but that's way too inefficient.

blogs: