modif du samedi 19 juin 2021
This commit is contained in:
BIN
ARTHAUD_GAMES - Raccourci.lnk
Normal file
BIN
ARTHAUD_GAMES - Raccourci.lnk
Normal file
Binary file not shown.
BIN
data/images/misile - mechant.png
Normal file
BIN
data/images/misile - mechant.png
Normal file
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++) {
|
||||
|
||||
Reference in New Issue
Block a user