Skip to content

Commit

Permalink
Sync with published result of episode 22.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomle committed Apr 24, 2020
1 parent 6e5e398 commit d0097fd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions public/js/tiles/coin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {Sides} from '../Entity.js';

function handle({entity, match, resolver, gameContext, level}) {
function handle({entity, match, resolver}) {
if (entity.player) {
entity.player.addCoins(1);
const grid = resolver.matrix;
Expand Down
7 changes: 7 additions & 0 deletions public/levels/1-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@

]
},
{
"name": "coin",
"type": "coin",
"ranges": [
[0, 0]
]
},
{
"name": "chocolate",
"type": "ground",
Expand Down
1 change: 1 addition & 0 deletions public/levels/debug-coin.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
]
}
],

"entities": []
}
2 changes: 1 addition & 1 deletion public/sprites/overworld.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@
]
}
]
}
}

0 comments on commit d0097fd

Please sign in to comment.