- Scorebalk kleur krijgt geen Alpha meer mee

- Scorebalk renderde niet opnieuw wanneer speler score verliest.
- Boot Animatie toegevoegd.
- Nog wat kleine verbeteringen.
This commit is contained in:
Bilel Bghiel
2015-06-12 19:17:21 +02:00
parent 9f0752c577
commit d0a91023b3
4 changed files with 90 additions and 56 deletions
+4 -3
View File
@@ -84,13 +84,14 @@ public class InfoPanel {
if (!coinAnimation.areWeDoneYet()) {
coinAnimation.draw(g2);
// Score pas updaten wanneer coin klaar is met afspelen
if (coinAnimation.isLastLoop())
tempComboScore = PlayState.comboScore;
}
} else
tempComboScore = PlayState.comboScore;
g2.setColor(Color.YELLOW);
g2.fillRect(25, 1000 - 7 * tempComboScore, 200, 7 * tempComboScore);
g2.setColor(Color.YELLOW);
g2.dispose();
infoPanel.createGraphics();