Roguelike dungeon generator

Post your own tutorials, guides and demos.

Post » Sat Oct 16, 2010 11:13 pm

Well, it's quite a bit later than I expected, but I finally got some time to rewrite this thing in Python. It's a fairly straight conversion of the prototype version, with a simple slider-driven interface wrapped around it to demonstrate it's possible usage.

The sliders were given private variables with reasonable ranges for the parameters, which can be changed in the layout editor if need be. The actual acceptable limits of the parameters are commented upon in the script, and are not checked by it. The user should handle making sure that the parameters are within range.

I'm uploading two files. Each has the same script defining the classes, but each uses it in a slightly different way. The first one keeps things simple and uses a Text object to display the level, and the second one uses a method to copy the level data into a Construct Array, and uses a Canvas object to display the Array data.

Requires Construct v0.99.95 or newer. Attachments are below:
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Sun Oct 17, 2010 11:13 am

Kickass!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Oct 18, 2010 3:01 pm

Top stuff mate.
Really nice.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Mon Oct 18, 2010 3:16 pm

Glad you guys liked it. :) I'll likely be posting further examples and updates occasionally in this thread, as I continue my work on making a roguelike game.

My next steps will probably be to make a Dungeon class to contain the levels, with a way to connect the levels to each other, and getting a character moving around within it. Not very difficult stuff, but my time is more limited than I'd like these days. Things like filling the dungeon with random stuff and creatures will follow, here.

I'll also likely be cross-posting this project across different threads later, as I get to field-of-vision and line-of-sight examples, and other different topics that will crop up with it.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Wed Nov 10, 2010 12:49 am

This is really cool. Are there any online resources you've looked at in producing your code, or is it all original? I only ask because I'd like to do some research on random level generation myself, and like the way yours works.
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Wed Nov 10, 2010 8:16 am

Hi. The code is original, but the ideas are not. For instance, the 'scoring' system for room placement has surely been done before. I'm unsure if the way that I connect rooms has been done like I have done it. It's just what I came up with when I thought of how I'd do it with Construct, and was originally based upon Construct's easy random picking conditions that were used in the prototype.

I did do quite a bit of research on roguelikes a few years ago, but never got around to starting one back then. Here are a couple of sites that I would recommend checking out:

http://roguebasin.roguelikedevelopment. ... =Main_Page

http://www.roguetemple.com/

I haven't had time to look this one over much, but it looks quite promising:

http://pcg.wikidot.com/

And if you can do newsgroups while avoiding the ridiculous spam, I'd recommend the roguelike development one. Here's Google's version of it (horribly spammed):

http://groups.google.com/group/rec.game ... ent/topics

I'll be slowly working on mine and posting new examples as I go, but it seems that I'll never have the time I would like to work on it. ;)

Good luck!
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Wed Aug 10, 2011 4:21 am

Hi, I'm sorry to bump such an old topic, but the attachments aren't showing up in this topic. Does anybody know if I can download this file somewhere else? I really need this!
B
2
G
1
Posts: 1
Reputation: 452

Post » Wed Aug 10, 2011 6:46 am

[QUOTE=BunnyBrigade] Hi, I'm sorry to bump such an old topic, but the attachments aren't showing up in this topic. Does anybody know if I can download this file somewhere else? I really need this![/QUOTE]

Hi.

Check THIS post from Ashley. You should be able to search and find what you want here.

zenzenox982011-08-10 06:49:09
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Previous

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest