Modification du samedi 13/03/21

This commit is contained in:
Stève Oriol 2021-03-13 15:32:05 +01:00
parent 105520fec0
commit c414c8c96c
2 changed files with 403 additions and 391 deletions

View File

@ -1,9 +1,8 @@
//ici il faut faire un enemie qui te fonce dessus
//ici il faut faire un enemie qui bouge
class Alien2 {
int blob, blob2;
int x,y;
int enemypv = 2;
boolean show;
@ -19,6 +18,19 @@ class Alien2 {
enemypv = pv;
}
void alea_bouge(){
random = Math.random()*(0-20)-10;
frameRate(500);
if (frameCount % 500 == 0) {
x = blob;
y = blob;
println ("blob = "+blob);
}
}
void apparaitre() {
//affiche l'anime de explosion :
@ -71,7 +83,7 @@ class Alien2 {
}
public double random(){
random = Math.random()*(10-3);
random = Math.random()*(10-4);
return random;
}