Skip to content

Commit

Permalink
Remove Mario army.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomle committed Sep 23, 2017
1 parent 9228921 commit 03e6bd8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const context = canvas.getContext('2d');

function createSpriteLayer(sprite, pos) {
return function drawSpriteLayer(context) {
for (let i = 0; i < 20; ++i) {
sprite.draw('idle', context, pos.x + i * 16, pos.y);
}
sprite.draw('idle', context, pos.x, pos.y);
};
}

Expand All @@ -28,8 +26,8 @@ Promise.all([
comp.layers.push(createBackgroundLayer(level.backgrounds, backgroundSprites));

const pos = {
x: 0,
y: 0,
x: 64,
y: 64,
};

comp.layers.push(createSpriteLayer(marioSprite, pos));
Expand Down

0 comments on commit 03e6bd8

Please sign in to comment.