This commit is contained in:
Bilel Bghiel
2015-06-22 10:34:17 +02:00
parent 32fadbbec1
commit b526152957
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -37,10 +37,12 @@ public class CoinAnimation extends DrawObject {
}
public void draw(Graphics2D g2) {
Color oldColor = g2.getColor();
update(timerLoops); // UPDATE
g2.setColor(new Color(255, 255, 0)); // GEEL
g2.draw(coinShape); // MUNTJE TEKENEN
g2.fill(coinShape);
g2.setColor(oldColor);
}
// Wordt na elke paint aangeroepen