Skip to content

Commit

Permalink
show object in wall layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnywang committed Mar 29, 2020
1 parent 66fe921 commit d9e72a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions map-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ Game.render = function () {
objects = objects.concat(this.getDrawingObjects().map(function(o) { o[3] = 0.5; return o}));
} else if ($('[name="layer"]:checked').val() == 'wall') {
objects = objects.concat(this.getDrawingWalls().map(function(o) { o[3] = 0.5; return o}));
objects = objects.concat(this.getDrawingObjects().map(function(o) { o[3] = 0.5; return o}));

} else if ($('[name="layer"]:checked').val() == 'object') {
objects = objects.concat(this.getDrawingWalls().map(function(o) { o[3] = 0.5; return o}));
Expand Down

0 comments on commit d9e72a3

Please sign in to comment.