The Daily Click ::. Forums ::. Klik Coding Help ::. Platform game map generation?
 

Post Reply  Post Oekaki 
 

Posted By Message

easyname



Registered
  15/04/2008
Points
  450
22nd February, 2009 at 14:07:49 -

What would be the best way to go about doing this?

 
n/a

aphant



Registered
  18/05/2008
Points
  1242
22nd February, 2009 at 17:48:13 -

What do you mean by "map generation?"

 

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd February, 2009 at 18:15:21 -

You mean a minimap?

Edited by OMC

 

  		
  		

easyname



Registered
  15/04/2008
Points
  450
22nd February, 2009 at 18:17:09 -

Map generating as in generating a level.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
22nd February, 2009 at 18:28:40 -

you thinking an endless level?

 
Craps, I'm an old man!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
22nd February, 2009 at 18:55:08 -

Base it all on a seed number. Then you can use edit the number to generate different levels but keeping the same number will give you the same level.

Personally i would probably have large chunks of premade level so the levels aren't too random. Otherwise you might have a nightmare trying to make them fit together properly.

Putting a number into a global string then using the string parser to generate the level should work. I don't actually know how to use the string parser well enough to give you an example.

 
.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd February, 2009 at 19:17:32 -

Generating truly good truly random levels is hard for platforming games. There are quite a few things to keep in mind and the math would be horrendous. It's not even in my scope of WANTING to understand.

 

  		
  		

easyname



Registered
  15/04/2008
Points
  450
22nd February, 2009 at 20:00:45 -


Originally Posted by AndyUK
Base it all on a seed number. Then you can use edit the number to generate different levels but keeping the same number will give you the same level.

Personally i would probably have large chunks of premade level so the levels aren't too random. Otherwise you might have a nightmare trying to make them fit together properly.

Putting a number into a global string then using the string parser to generate the level should work. I don't actually know how to use the string parser well enough to give you an example.


I only really want to generate simple 20x15 levels with a start at the edge and a finish at another random edge :/ Basically, you would go through a level, and leave it through one of the sides, then it would go to the next level, and you would be at the opposite side. Kinda like knytt with random layouts.

What do you mean by use the string parser to generate a level?

Edited by easyname

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd February, 2009 at 16:01:16 -

It wasn't for a platformer, but my game Dark Chamber has randomly generated levels where you had four different sections per level (northwest, northeast, southwest, & southeast) and about 20 different possibilites for each. Then at the start of the level the computer randomly selects a # from 1-20 for each section and compiles them into one master map file that's what the player actually plays on. Because you pre-make all the sections you can be sure you don't have any dead-ends or other obstacles where your game might be unbeatable and / or frustrating.

Then you can just go back and randomly add monsters, treasures, etc. It's probably the same theory for a platforming game too.

Just remember for ease of use you'll probably want to make your own level editor in which you create all those "corners" of your maps and save them into a folder. I can't tell you how to do this with MMF because I used VB6 to create mine and can't figure out a click level editor yet

Edited by Del Duio

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click