Contains game-jumpnrun and game-labyrinth projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
78 lines
3.4 KiB
JavaScript
78 lines
3.4 KiB
JavaScript
// Level-Daten
|
|
// 0 = Weg, 1 = Wand, 2 = Spieler-Start, 3 = Ausgang, 4 = Monster-Start
|
|
|
|
const LEVELS = [
|
|
// Level 1: Klein (15x11) — Einfach
|
|
{
|
|
name: "Die Flucht beginnt",
|
|
monsterSpeed: 3, // Tiles pro Sekunde
|
|
speedIncrease: 0.15, // Speed-Zunahme pro Sekunde
|
|
maxMonsterSpeed: 5,
|
|
grid: [
|
|
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
|
|
[1,2,0,0,1,0,0,0,0,0,1,0,0,0,1],
|
|
[1,0,1,0,1,0,1,1,1,0,1,0,1,0,1],
|
|
[1,0,1,0,0,0,0,0,1,0,0,0,1,0,1],
|
|
[1,0,1,1,1,1,1,0,1,0,1,1,1,0,1],
|
|
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
|
|
[1,0,1,1,1,0,1,1,1,0,1,1,1,0,1],
|
|
[1,0,1,0,0,0,1,4,1,0,0,0,1,0,1],
|
|
[1,0,1,0,1,0,1,0,1,0,1,0,1,0,1],
|
|
[1,0,0,0,1,0,0,0,0,0,1,0,0,3,1],
|
|
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
|
|
]
|
|
},
|
|
// Level 2: Mittel (21x15) — Komplexer
|
|
{
|
|
name: "Tiefer ins Dunkel",
|
|
monsterSpeed: 3.5,
|
|
speedIncrease: 0.2,
|
|
maxMonsterSpeed: 6,
|
|
grid: [
|
|
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
|
|
[1,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1],
|
|
[1,0,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,0,1],
|
|
[1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,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