Page 1 of 1

Help needed for making a random level generator

Posted: 2009.09.28 (23:54)
by Yoshimo
I'm confident in my coding skill, but the task of getting fairly static variables will take way to long on my own, and will make the maps look boring. As of now, I have a couple 21 digit long string. I need about 50 21 digit long strings of tile data for this to work right. Here's an example of what I want:



Note that when in the level editor, it creates a one-tile thick wall of fairly random tiles. Think about how they would fit in with other bars like this, so it's not very up-and-down themed.

Help appreciated, this is my first big coding project.

Also: I've been experimenting with those three lines, and I can't finsd a way to join 31 strings of those size into 1 string the size of a tileset. Any Python gurus willing to help?

Re: Help needed for making a random level generator

Posted: 2009.09.29 (00:56)
by SkyPanda
Can't help you with python sorry, but I'm wondering whether you'd be better off using arrays for simplicity and flexibility. I think it would be much easier to generate open spaced maps with things like walls, floors and ramps. Have you checked out LV's /first/ map generator for ideas?

Re: Help needed for making a random level generator

Posted: 2009.09.29 (16:56)
by Tunco

Re: Help needed for making a random level generator

Posted: 2009.09.29 (19:12)
by Yoshimo
-_- I already know about that Tunco, that's part of my inpsiration. I'm just aiming for a large library of tiles to choose from.

Re: Help needed for making a random level generator

Posted: 2009.12.01 (03:28)
by heatwave
SkyPanda wrote:Have you checked out LV's /first/ map generator for ideas?
How many generators does he have?