Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from warioddly/warioddly-patch-1
Browse files Browse the repository at this point in the history
Update map.dart
  • Loading branch information
warioddly committed Mar 12, 2024
2 parents 2974ccf + 5682036 commit 59295fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/level/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ class Level extends World with HasGameRef<PacmanGame> {

continue;
}
// if (char == '.') {
// add(Dot()
// ..position = Vector2(x * tileSize, y * tileSize)
// ..center = Vector2(x * tileSize + 15, y * tileSize + 15)
// );
// continue;
// }
if (char == '.') {
add(Dot()
..position = Vector2(x * tileSize, y * tileSize)
..center = Vector2(x * tileSize + 15, y * tileSize + 15)
);
continue;
}
if (char == 'p') {
gameRef.player.position = Vector2(x * tileSize, y * tileSize);
}
Expand Down

0 comments on commit 59295fa

Please sign in to comment.