Glowing hitArea if you hit the enemy

This commit is contained in:
Remco
2015-06-11 11:28:45 +02:00
parent 44cc0e38d5
commit 69bc3c2bee
2 changed files with 70 additions and 62 deletions
+3
View File
@@ -122,6 +122,7 @@ public class PlayState extends GameState {
}
infoPanel.updateIPanel();
area.count();
}
@Override
@@ -157,6 +158,8 @@ public class PlayState extends GameState {
currentScore += enemy.getDistanceFromStart() - Enemy.distanceToOctagon;
comboScore += 5;
lifePoints = Math.min(lifePoints+10, 100);
area.setHitAreaColor(enemy.getColor());
area.hit();
enemysInPath.remove();
notHit = false;
break;