pcg for maze games spelunky

119
In Supervision of DR.Ammar Jokhadar DR.Noor Shaker Designed and Implemented By Rawan Al-Omari Fawzia Shams Al-Deen Walaa Baghdadi Zeina Al-Helwani FITE of Damascus, Syria, Department of AI - 2013

Upload: zeina-al-helwani

Post on 08-Jul-2015

650 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Pcg for maze games spelunky

In Supervision of

DR.Ammar Jokhadar DR.Noor Shaker

Designed and Implemented By

Rawan Al-Omari Fawzia Shams Al-Deen

Walaa Baghdadi Zeina Al-Helwani

FITE of Damascus, Syria, Department of AI - 2013

Page 2: Pcg for maze games spelunky

Content

• Work scope • Goal • The Game • Model • Future Perspective • Tools

Page 3: Pcg for maze games spelunky
Page 4: Pcg for maze games spelunky
Page 5: Pcg for maze games spelunky
Page 6: Pcg for maze games spelunky

Sokoban

• Maze game

• Single player

• Components: • Goal areas • Walls • Passways: - warehouse keeper - Objects - Empty

Page 7: Pcg for maze games spelunky
Page 8: Pcg for maze games spelunky

The Goal

Page 9: Pcg for maze games spelunky

Levels generation, PCG

Different levels, all time

The Goal

No more designers

Page 10: Pcg for maze games spelunky
Page 11: Pcg for maze games spelunky

Adventure game Free copy(Version) for Microsoft windows Commercial game for Xbox

Page 12: Pcg for maze games spelunky

Used GameMaker platform (GML)

Page 13: Pcg for maze games spelunky
Page 14: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 15: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 16: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 17: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 18: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 19: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 20: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 21: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 22: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 23: Pcg for maze games spelunky

Spelunky Scenario

X X

Bomb X

Princess

X

X

End

Page 24: Pcg for maze games spelunky

The Real Game,

Spelunky Levels

20% Randomization

80% Hand made design

Page 25: Pcg for maze games spelunky
Page 26: Pcg for maze games spelunky

The Model

Difficulty

Model

Generated Level

Page 27: Pcg for maze games spelunky

The Model

Difficulty

Model

Generated Level

Level Generation

Items distribution

Assessing Difficulty

Page 28: Pcg for maze games spelunky
Page 29: Pcg for maze games spelunky

Assessing Difficulty

Items Distribution

Level Design

Page 30: Pcg for maze games spelunky
Page 31: Pcg for maze games spelunky

Level Representation

4*4 matrix Each cell is a room

Page 32: Pcg for maze games spelunky

Level Representation

4*4 matrix Each cell is a room

Page 33: Pcg for maze games spelunky

Level Representation

Start Room

Page 34: Pcg for maze games spelunky

Level Representation

Bomb Room

Page 35: Pcg for maze games spelunky

Level Representation

Princess Room

Page 36: Pcg for maze games spelunky

Level Representation

End Room

Page 37: Pcg for maze games spelunky
Page 38: Pcg for maze games spelunky

Every room is 8 * 10

Page 39: Pcg for maze games spelunky

Cells Values

• Block • Space • Enemy • Item

Page 40: Pcg for maze games spelunky
Page 41: Pcg for maze games spelunky
Page 42: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 43: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 44: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 45: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 46: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 47: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 48: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 49: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 50: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 51: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 52: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 53: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 54: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 55: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 56: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 57: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 58: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 59: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 60: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 61: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 62: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 63: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 64: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 65: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 66: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 67: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 68: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 69: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 70: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 71: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 72: Pcg for maze games spelunky

Digger Algorithm in a Room

Page 73: Pcg for maze games spelunky
Page 74: Pcg for maze games spelunky

PhenoType Representation

Main Rooms (4)

Graph Connections

Items Path Length

Page 75: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Main Rooms (4)

Page 76: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Main Rooms (4)

Page 77: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Start room Bomb room

Princess room Exit room

Main Rooms (4)

Page 78: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Snakes number Bats number

Ladders number Coins number Spikes number

Main Rooms (4)

Page 79: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Main Rooms (4)

Page 80: Pcg for maze games spelunky

PhenoType Representation

Graph Connections

Items Path Length

Main Rooms (4)

Page 81: Pcg for maze games spelunky
Page 82: Pcg for maze games spelunky

Items Path Length

Main Rooms (4)

Start Bomb Princess End

Graph Connections

Page 83: Pcg for maze games spelunky

Graph Connections

Items Path Length

Main Rooms (4)

Start Bomb Princess End

3

10

5

7

9

15

Page 84: Pcg for maze games spelunky
Page 85: Pcg for maze games spelunky

the start, end, Princess, bomb room are in the graph #1

there is connection between start and end room #2

the path is valid (start -> bomb -> Princess -> exit) #3

Start, exit, Princess and bomb rooms are unique in the phenotype #4

Start room should be in the first eight rooms #5

Exit room should be in the last eight rooms #6

15%

10

%

10%

10

%

10%

10

%

check the length of the path if according with the destination length #7

Difficulty #8

35%

10

0%

Page 86: Pcg for maze games spelunky

= 15 ∗ 𝑐𝑜𝑛𝑑1 + 10 ∗ 𝑐𝑜𝑛𝑑2 + 10 ∗cond3 + 10 ∗ 𝑐𝑜𝑛𝑑4 + 10 ∗ 𝑐𝑜𝑛𝑑5 + 10 ∗ 𝑐𝑜𝑛𝑑6 + 35 ∗ 𝑐𝑜𝑛𝑑7

Design Fitness

Fitness

Page 87: Pcg for maze games spelunky

= 𝑐𝑜𝑛𝑑8

Difficulty Fitness

= 15 ∗ 𝑐𝑜𝑛𝑑1 + 10 ∗ 𝑐𝑜𝑛𝑑2 + 10 ∗cond3 + 10 ∗ 𝑐𝑜𝑛𝑑4 + 10 ∗ 𝑐𝑜𝑛𝑑5 + 10 ∗ 𝑐𝑜𝑛𝑑6 + 35 ∗ 𝑐𝑜𝑛𝑑7

Design Fitness

Fitness

Page 88: Pcg for maze games spelunky

= 𝑐𝑜𝑛𝑑8

Difficulty Fitness

= 15 ∗ 𝑐𝑜𝑛𝑑1 + 10 ∗ 𝑐𝑜𝑛𝑑2 + 10 ∗cond3 + 10 ∗ 𝑐𝑜𝑛𝑑4 + 10 ∗ 𝑐𝑜𝑛𝑑5 + 10 ∗ 𝑐𝑜𝑛𝑑6 + 35 ∗ 𝑐𝑜𝑛𝑑7

Design Fitness

= 10% ∗ 𝐷𝑒𝑠𝑖𝑔𝑛 𝑓𝑖𝑡𝑛𝑒𝑠𝑠 + 90% 𝐷𝑖𝑓𝑓𝑖𝑐𝑢𝑙𝑡𝑦 𝑓𝑖𝑡𝑛𝑒𝑠𝑠

Overall Fitness

Fitness

Page 89: Pcg for maze games spelunky

Assessing Difficulty

Items Distribution

Level Design

Page 90: Pcg for maze games spelunky
Page 91: Pcg for maze games spelunky

Snakes, Snakes around Gaps, Bats

Page 92: Pcg for maze games spelunky

Ladders, Coins, Spike

Page 93: Pcg for maze games spelunky

Items Distribution Over Level

Page 94: Pcg for maze games spelunky

Items Distribution Over Level

Snakes, Snakes around Gaps, Bats, Spikes, Ladder, Coin

Page 95: Pcg for maze games spelunky

Items Distribution Over Level

Snakes/4 Snakes around Gaps/4

Bats/4 Spikes/4 Ladder/4 Coin/4

Snakes, Snakes around Gaps, Bats, Spikes, Ladder, Coin

Page 96: Pcg for maze games spelunky

Ladder

Page 97: Pcg for maze games spelunky

Snakes

Page 98: Pcg for maze games spelunky

Snakes around Gaps

Page 99: Pcg for maze games spelunky

Bats

Page 100: Pcg for maze games spelunky

Coins

Page 101: Pcg for maze games spelunky

Spikes

Page 102: Pcg for maze games spelunky
Page 103: Pcg for maze games spelunky
Page 104: Pcg for maze games spelunky

Assessing Difficulty

Items Distribution

Level Design

Page 105: Pcg for maze games spelunky
Page 106: Pcg for maze games spelunky

Assessing Difficulty

Page 107: Pcg for maze games spelunky

Assessing Difficulty

20%

25%

10%

45%

• Path Length • Vertical Length • Shape • Enemies

– Snakes – Snakes around Gaps – Bats – Spikes

Page 108: Pcg for maze games spelunky

• Path Length

Assessing Difficulty

20%

25%

10%

45%

Page 109: Pcg for maze games spelunky

• Vertical Length

Assessing Difficulty

20%

25%

10%

45%

Page 110: Pcg for maze games spelunky

Vertical Length

Page 111: Pcg for maze games spelunky

• Path Shape

Assessing Difficulty

20%

25%

10%

45%

Page 112: Pcg for maze games spelunky

• Enemies – Snakes 10% – Snakes around Gaps 15% – Bats 10% – Spikes 10%

Assessing Difficulty

20%

25%

10%

45%

Page 113: Pcg for maze games spelunky

Simple Level – 10% Difficulty

Page 114: Pcg for maze games spelunky

Hard Level – 70% Difficulty

Page 115: Pcg for maze games spelunky
Page 116: Pcg for maze games spelunky

Add Extra Items and Adaptive

Enemies

Shop Keeper Cave man

The implementation of an Authoring Tool that combines the gamer imagination and machine varity designs.

Designers

The difficulty of the game that is determined by a player's skills, facial

expressions, gameplay features.

Adaptive Content

Generation

Page 117: Pcg for maze games spelunky
Page 118: Pcg for maze games spelunky

Tools

• Game Maker • Ecj (Java-based Evolutionary Computation) • Java

Page 119: Pcg for maze games spelunky