Skip to content

Commit

Permalink
Formatting (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
valery1707 authored Jul 13, 2021
1 parent 10c5268 commit 5e27b67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions levels/02_theLongWayOut.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ function startLevel(map) {
maze.create( function (x, y, mapValue) {

// don't write maze over player
if (map.getPlayer().atLocation(x,y)) {
if (map.getPlayer().atLocation(x, y)) {
return 0;
}

else if (mapValue === 1) { //0 is empty space 1 is wall
map.placeObject(x,y, 'block');
map.placeObject(x, y, 'block');
}
else {
map.placeObject(x,y,'empty');
map.placeObject(x, y, 'empty');
}
});

Expand Down

0 comments on commit 5e27b67

Please sign in to comment.