Exemplo n.º 1
0
 public void Draw()
 {
     Base.Draw();
     if (Characters.Count > 0)
     {
         foreach (Units Character in Characters)
         {
             foreach (Animation Animation in Character.Animations)
             {
                 if (Animation.Name == "Walk")
                 {
                     GeneralFunctions.SpriteBatch.Draw(Animation.Textures[Animation.TextureNumber], new Vector2(50 + Convert.ToSingle(GeneralFunctions.RelativeX), 50), Color.White);
                 }
                 if (Animation.Name == "Idle")
                 {
                     GeneralFunctions.SpriteBatch.Draw(Animation.Textures[Animation.TextureNumber], new Vector2(50 + Convert.ToSingle(GeneralFunctions.RelativeX), 150), Color.White);
                 }
                 if (Animation.Name == "Attack")
                 {
                     GeneralFunctions.SpriteBatch.Draw(Animation.Textures[Animation.TextureNumber], new Vector2(50 + Convert.ToSingle(GeneralFunctions.RelativeX), 300), Color.White);
                 }
                 if (Animation.Name == "Kick")
                 {
                     GeneralFunctions.SpriteBatch.Draw(Animation.Textures[Animation.TextureNumber], new Vector2(50 + Convert.ToSingle(GeneralFunctions.RelativeX), 450), Color.White);
                 }
             }
         }
     }
 }