Initial commit: kids games
Contains game-jumpnrun and game-labyrinth projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
77
game-labyrinth/js/levels.js
Normal file
77
game-labyrinth/js/levels.js
Normal file
@@ -0,0 +1,77 @@
|
||||
// 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,1],
|
||||
[1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1],
|
||||
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
|
||||
[1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1],
|
||||
[1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1],
|
||||
[1,0,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,1,1,0,1],
|
||||
[1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1],
|
||||
[1,0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1],
|
||||
[1,0,1,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,1,0,1],
|
||||
[1,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,1],
|
||||
[1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,3,1],
|
||||
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
|
||||
]
|
||||
},
|
||||
// Level 3: Groß (27x19) — Schwer, viele Sackgassen
|
||||
{
|
||||
name: "Das letzte Labyrinth",
|
||||
monsterSpeed: 4,
|
||||
speedIncrease: 0.25,
|
||||
maxMonsterSpeed: 7.5,
|
||||
grid: [
|
||||
[1,1,1,1,1,1,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,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,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,0,0,0,0,1,0,1],
|
||||
[1,0,1,1,1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