mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
add tunnel logic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user