Jelajahi Sumber

größe eines Pfeils angepasst

Kolja Strohm 6 tahun lalu
induk
melakukan
d0bc8d3096
1 mengubah file dengan 16 tambahan dan 4 penghapusan
  1. 16 4
      StickmanWorldOnline/Geschoss.cpp

+ 16 - 4
StickmanWorldOnline/Geschoss.cpp

@@ -8,9 +8,15 @@ Geschoss::Geschoss( int id, float speed, GeschossTyp typ, Richtung r, int x, int
     if( typ == GESCHOSS_PFEIL )
     {
         if( r == OBEN || r == UNTEN )
-            setHeight( 50 );
+        {
+            setWidth( 7 );
+            setHeight( 30 );
+        }
         else
-            setWidth( 50 );
+        {
+            setWidth( 30 );
+            setHeight( 7 );
+        }
     }
     this->speed = speed;
     this->richtung = richtung;
@@ -75,9 +81,15 @@ void Geschoss::setTyp( GeschossTyp typ )
     if( typ == GESCHOSS_PFEIL )
     {
         if( richtung == OBEN || richtung == UNTEN )
-            setHeight( 50 );
+        {
+            setWidth( 7 );
+            setHeight( 30 );
+        }
         else
-            setWidth( 50 );
+        {
+            setWidth( 30 );
+            setHeight( 7 );
+        }
     }
     else
     {