Skip to content

Commit 1392979

Browse files
committed
feat: add Pac-Man game implementation with base map and procedural level generation
1 parent 08db21e commit 1392979

5 files changed

Lines changed: 1158 additions & 1 deletion

File tree

assets/imgs_games/pacman.svg

Lines changed: 5 additions & 0 deletions
Loading

games.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"description": "Classic strategy board game for two players",
125125
"path": "games/othello/",
126126
"image": "assets/imgs_games/othello.svg",
127-
"color": "#0f3460",
127+
"color": "#ffffff",
128128
"tags": [
129129
"Clásico",
130130
"Estrategia",
@@ -193,6 +193,19 @@
193193
"Arcade",
194194
"Shoot"
195195
]
196+
},
197+
{
198+
"id": "pacman",
199+
"title": "Pacman",
200+
"description": "Classic arcade maze game",
201+
"path": "games/pacman/",
202+
"image": "assets/imgs_games/pacman.svg",
203+
"color": "#faff77",
204+
"tags": [
205+
"Clásico",
206+
"Arcade",
207+
"Laberinto"
208+
]
196209
}
197210
]
198211
}

games/pacman/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="es">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
6+
<title>Pac-Man</title>
7+
<link rel="stylesheet" href="style.css" />
8+
</head>
9+
<body>
10+
<div id="game-container">
11+
<canvas id="gameCanvas"></canvas>
12+
<button id="back-btn" onclick="location.href='../../'">&#8592; Volver</button>
13+
</div>
14+
15+
<script src="../../engine/engine.js"></script>
16+
<script src="../../engine/input.js"></script>
17+
<script src="../../engine/audio.js"></script>
18+
<script src="script.js"></script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)