...will he ever win?

[first]  [prev]  page 3 of 20  [next]  [last]    [view as one page] 

Grand Text Auto

A Probabilistic Multi-Pass Level Generator

I recently participated in the CIG 2010 Mario level generation competition. My submission utilizes a multi-pass approach to level generation in which the system iterates through the level several times, placing different types of objects during each pass. During each pass through the level, a subset of each object type has a specific probability of being added to the level. The result is a computationally efficient approach to generating a large space of randomized levels.

A level created by the probabilistic multi-pass generator

The generation process consists of several phases, which place additional object types in the level. The following passes occur during generation:

  1. Ground placement
  2. Secondary hills
  3. Pipes
  4. Enemies
  5. Blocks
  6. Coins

Phases in the level generation process

During each phase, the generator traverses the level from left to right placing objects in response to probabilistic events. For example, during the first phase the system places the ground. The following events can occur during this phase:

Each of these events has a probability of occurring during the first pass through the level. The activation condition for an event is specified as follows:

Math.random() < pEvent

where pEvent is the probability that a specific event will occur. The system also applies a set of constraints in order to ensure that generated levels are playable. During ground placement, the following rules are enforced:

  1. If the current gap exceeds the maximum gap size, immediately add ground
  2. If the ground height is increased, constrain the maximum increase in height

Playability constraints are only applied during the first phase of the generation process. The additional constraints specified by the competition rules are satisfied by over-generating and then constraining during the generation process.

A level generated with the EXTREME parameter set

The system takes two types of parameters as input: probabilities that specify the frequency of events occurring, and parameters that constrain the range of generated values. While the entry submitted to the CIG 2010 competition used a fixed parameter set, it is possible to adapt to players by selecting different probabilities in response to the supplied player model. For example, the system could generate levels for highly skilled players by utilizing an EXTREME parameter set.

Check out the generator by running this JAR. Or, play around with the generator source. For information on setting up your own generator, see the competition rules.

September 02, 2010 11:13 PM


IGN PC

Super Hero Squad Online Trailer

Marvel Super Hero Squad Online (PC)
Only one squad will win.

September 02, 2010 10:20 PM

Medal of Honor Pulled From Military Stores

Medal of Honor (PC)
Army and Air Force Exchange Service won't sell the game this fall.

September 02, 2010 09:42 PM

Shogun 2: Total War Trailer

Shogun II: Total War (PC)
Watch the epic night time battle, as the Chosokabe clan take on the Takeda clan.

September 02, 2010 09:33 PM

FEAR 3 Trailer

F.E.A.R. 3 (PC)
The PAX trailer.

September 02, 2010 09:18 PM

Free Bytes: Treadmillasaurus Rex

This freebie prehistoric workout may very well kill you.

September 02, 2010 08:59 PM


IGN Wii

Kirby's Epic Yarn Japanese Trailer

Kirby's Epic Yarn (Wii)
Nintendo announces its new Kirby game for Japan and shares a sweet trailer with some must-see gameplay sequences.

September 02, 2010 08:53 PM


IGN PC

Mafia II DLC Trailer

Mafia II: Jimmy's Vendetta (PC)
A Jimmy's Vendetta DLC trailer.

September 02, 2010 08:21 PM

Company of Heroes Online Open Beta Launches in North America

Company of Heroes Online (PC)
Plus free in-game item package for early adopters.

September 02, 2010 08:15 PM


IGN Wii

Activision and Cabela's Announce 'Hunt Across America Tour'

Cabela's Dangerous Hunts 2011 (Wii)
Highly anticipated Top Shot Elite will be unveiled.

September 02, 2010 08:13 PM

[first]  [prev]  page 3 of 20  [next]  [last]    [view as one page]