add tunnel logic

This commit is contained in:
2025-11-11 19:40:52 -05:00
parent 2d1d11f8ae
commit ec323f14c6
4 changed files with 32 additions and 0 deletions
+2
View File
@@ -258,6 +258,8 @@ void Game::run() {
pacman.update();
map.handleTunnelWrapping(pacman);
if (map.hasPellet(currentPacmanTile.x, currentPacmanTile.y)) {
map.eatPellet(currentPacmanTile.x, currentPacmanTile.y);
score += 10;