Jelajahi Sumber

Feuerball größe auf 20x20 geändert

Kolja Strohm 5 tahun lalu
induk
melakukan
2dc8c2036a

+ 10 - 0
StickmanWorldOnline/Geschoss.cpp

@@ -18,6 +18,11 @@ Geschoss::Geschoss( int id, float speed, GeschossTyp typ, Richtung r, int x, int
             setHeight( 7 );
         }
     }
+    else if( typ == FEUERBALL )
+    {
+        setWidth( 20 );
+        setHeight( 20 );
+    }
     this->speed = speed;
     this->richtung = richtung;
     this->besitzer = besitzer;
@@ -91,6 +96,11 @@ void Geschoss::setTyp( GeschossTyp typ )
             setHeight( 7 );
         }
     }
+    else if( typ == FEUERBALL )
+    {
+        setWidth( 20 );
+        setHeight( 20 );
+    }
     else
     {
         setWidth( 15 );

+ 1 - 0
StickmanWorldOnline/Resource.h

@@ -70,6 +70,7 @@ enum ResourceIds
     R_RBOSHEIT,
     R_RLEBEN,
     R_RTEMPO,
+    R_RSTRENGTH,
     R_SCHALTER,
     R_SCHIENE,
     R_SPIELER_STIRBT,

+ 1 - 0
StickmanWorldOnline/Spiel.cpp

@@ -500,6 +500,7 @@ void Spiel::ladeDaten()
     resources->zResource( R_RBOSHEIT, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/rbosheit.png" );
     resources->zResource( R_RLEBEN, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/rleben.png" );
     resources->zResource( R_RTEMPO, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/rtempo.png" );
+    resources->zResource( R_RSTRENGTH, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/rstrength.png" );
     resources->zResource( R_SCHALTER, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/schalter.png" );
     resources->zResource( R_SCHIENE, 0, new ColorMode(), "spiel:/bilder/textures.ltdb/schiene.png" );
     resources->zResource( R_SPIELER_STIRBT, 0, new ColorMode(), "spiel:/bilder/spielerstirbt.ltdb" );