Latest Uploads
Bumble Bee




Guess The Remake


Julia Set Visualer


Julia Set Visualizer


image-07-0 ... -34-29.jpg


Forum Home

PlayMyCode: Tiled Procedural Caves/Maps

Posted : Monday, 07 May 2012, 02:09 | Permalink

A few months ago I was playing around with procedural cave generation and came across an idea by Noel Berry that used the concept of "miners" to create the map. I knocked up a prototype using PlayMyCode which produced the following:

Obviously, the above is pretty ugly and needs to be tiled to look more like a map. The usual approach is to use a shedload of nested if/else statements, but last night I came across this incredible idea:

so I applied it (very quickly I might add) to the above map generator and ended up with:

(Use the arrow keys to move the map around and hold down shift and press up or down to scale it)

The tiling code is ridiculously short and simple - amazing

The source code is available on PMC.
Homepage :
Posted : Monday, 07 May 2012, 11:57 | Permalink | Mark Here

We discussed something like this before -
Posted : Monday, 07 May 2012, 13:15 | Permalink | Mark Here

Thanks for the excellent link - provides greater detail to the other I posted
Homepage :
Posted : Tuesday, 08 May 2012, 09:21 | Permalink | Mark Here

awesome ive been thinking of starting a dungeon crawler/rpg but didnt know how to do a randomly generateing map so ill try this :3
Latest Posts
Jay's New Lumia 1020
Jayenkai Wed 16:13
Free SIMS 2
Jayenkai Wed 15:13
Good TV?
Jayenkai Wed 02:45
SAT:AM Loving
rockford Tue 08:18
AGameAWeek Progress Report
rychan Mon 23:57
[OUYA] AquaVenture
Jayenkai Mon 07:57
Happy Birthday to All
Jayenkai Mon 02:15
Mog's Village
Mog Sun 19:20
Faceless Piles of Shite
Dabz Thu 18:34
Dabz Takes Manhattan
Jayenkai Thu 18:32

Latest Items
Techy : Back from Game Dev Con!
Jayenkai Sun 15:52
Family : Sunday
Jayenkai Wed 02:31
Family : Good News (for once)
Kuron Tue 14:37
Showcase : Don't Tap The Zombies
therevillsgames Mon 15:26
Showcase : Mutant Monty
steve_ancell Wed 18:26
Blog : Update
Kuron Mon 12:52
Techy : New Laptop!?
Kuron Fri 14:52
Showcase : Ascension 2 Live Wallpaper
CodersRule Fri 12:48
Showcase : Saviors of Gundthor
CodersRule Fri 11:50
Showcase : Lava Monkey
rychan Tue 15:13
Blog : Mac Rant!
rockford Fri 13:48
Dev-Diary : Yup, another song
Kuron Wed 05:39
Pets : Old pic to share...
rockford Sat 16:01
Blog : EmuMenu
spinal Sat 10:07
Family : More bad news :c(
Kuron Mon 06:07

Who's Online
Wed, at 20:37
Evil Roy Ferguson
Wed, at 19:13
Wed, at 19:10
Wed, at 16:21
Wed, at 15:46
Wed, at 14:31
Wed, at 13:33
Wed, at 12:30
Wed, at 09:35
Wed, at 08:13
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.