20 lines
352 B
Plaintext
20 lines
352 B
Plaintext
//ici il faut faire un enemie qui te fonce dessus
|
|
|
|
class Alien2 {
|
|
|
|
int pv = 2;
|
|
double random;
|
|
public double random(){
|
|
random = Math.random()*(10-3);
|
|
return random;
|
|
}
|
|
|
|
double cooldown_fonce = random();
|
|
|
|
//le if doit etre dans une fonction ou une class ou void ...
|
|
|
|
void affichebob() {
|
|
image(mechant2, largeur/2, hauteur/2);
|
|
}
|
|
}
|