Skip to content

Commit

Permalink
added new scoring Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanTupper committed May 5, 2015
1 parent c1fb322 commit 9f4ba04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gameTypes/Bombi/GameType.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function BombiGameType(players, config) {
else if (shell.color === color) {
shell.type = Bombi.EMPTYSHELL;
shell.color = "trans";
player.score = player.score + 10;
player.score = player.score + (shell.magnitude*10);
renderer.explodeShell(row, col);
}
}
Expand Down Expand Up @@ -212,6 +212,7 @@ function BombiGameType(players, config) {
if(bombs !== undefined && bombs.length !== 0){
bombs.forEach(function (bomb) {
detonate(bomb, player);
player.score = player.score + 40
});
}
}
Expand Down

0 comments on commit 9f4ba04

Please sign in to comment.