modif du samedi 19 juin 2021
This commit is contained in:
parent
c2e3cb2f83
commit
8c6ba77d48
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
|
|
@ -15,20 +15,19 @@ class MisileGuides {
|
|||
}
|
||||
|
||||
void guide() {
|
||||
|
||||
if (x < ship.x) {
|
||||
x = x + 6;
|
||||
|
||||
if (y < ship.y) {
|
||||
y = y + 6;
|
||||
|
||||
|
||||
|
||||
// while(x < ship.x){
|
||||
// y += 6;
|
||||
// x += 6;
|
||||
//}
|
||||
|
||||
x = x + 8;
|
||||
}
|
||||
if (y < ship.y) {
|
||||
y = y + 8;
|
||||
}
|
||||
if (x > ship.x) {
|
||||
x = x + -8;
|
||||
}
|
||||
if (y > ship.y) {
|
||||
y = y + -8;
|
||||
|
||||
}
|
||||
}
|
||||
void apparaitre() {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void setup() {
|
|||
//création du boss
|
||||
boss = new Boss(5, "vaiseau_enemi.png", 800, 171, 8);
|
||||
//on crée le ship
|
||||
ship = new Ship(x, y, 5, img_ship);
|
||||
ship = new Ship(x, y, 9999, img_ship);
|
||||
|
||||
//on crée des ennemis
|
||||
for (int i = 0; i<nombreEnemi; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue