Skip to content

Commit

Permalink
Rename ambigious sprites to backgroundSprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomle committed Sep 23, 2017
1 parent 33ba18b commit 2a9862b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Promise.all([
loadBackgroundSprites(),
loadLevel('1-1'),
])
.then(([marioSprite, sprites, level]) => {
.then(([marioSprite, backgroundSprites, level]) => {
console.log('Level loader', level);

const comp = new Compositor();
comp.layers.push(createBackgroundLayer(level.backgrounds, sprites));
comp.layers.push(createBackgroundLayer(level.backgrounds, backgroundSprites));

const pos = {
x: 64,
Expand Down

0 comments on commit 2a9862b

Please sign in to comment.