animer bulle
This commit is contained in:
@@ -23,4 +23,14 @@ public class FondOcean extends ObjetGraphique {
|
||||
pinceau.drawOval(positionsBullesX[i], positionsBullesY[i], 10, 10);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
void Animer() {
|
||||
for (int i = 0; i < positionsBullesY.length; i++) {
|
||||
positionsBullesY[i] = positionsBullesY[i] - vitesseRemonteeDesBulles;
|
||||
|
||||
if (positionsBullesY[i] < -20) {
|
||||
positionsBullesY[i] = 650;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user