Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
.
authorgiersch <giersch>
Wed, 21 Nov 2007 12:11:41 +0000 (12:11 +0000)
committergiersch <giersch>
Wed, 21 Nov 2007 12:11:41 +0000 (12:11 +0000)
chateaux/chateaux.cpp

index b6c26e2..de2f469 100644 (file)
@@ -292,12 +292,12 @@ int jeu1(DrawingWindow& w)
         alpha = deg2rad(alpha);
         float x0;
         if (joueur == 1) {
-            x0 = positionChateau1 + 8;
+            x0 = positionChateau1 + 0.8 * largeurChateau;
         } else {
-            x0 = positionChateau2 - 8;
+            x0 = positionChateau2 - 0.8 * largeurChateau;
             alpha = PI - alpha;
         }
-        float y0 = 8;
+        float y0 = hauteurChateau + 1;
         perdant = tir(w, x0, y0, v0, alpha, x, y);
         dessineExplosion(w, x, y);
         dessineVent(w, wnd);