Ejemplo n.º 1
0
 public void Update(GameTime Time)
 {
     if (HasFore)
         if (ForeAnimation != null) ForeAnimation.Update(Time);
         else if (Mod.Fore[Fore].Frames > 0) ForeAnimation = new Animation(("Tiles.Fore." + Fore + "-"), Mod.Fore[Fore].Frames, true, Mod.Fore[Fore].Speed);
     if (HasBack)
         if (BackAnimation != null) BackAnimation.Update(Time);
         else if (Mod.Back[Back].Frames > 0) BackAnimation = new Animation(("Tiles.Back." + Back + "-"), Mod.Back[Back].Frames, true, Mod.Back[Back].Speed);
 }
Ejemplo n.º 2
0
 public Nyan_Button()
 {
     Position = new Vector2((Screen.ViewportWidth / 2f), (Screen.ViewportHeight / 2f));
     Mask = new Rectangle((int)(Position.X - 100), (int)(Position.Y - 50), 200, 100);
     Animation = new Animation("Nyan.Normal", 6, true, .08f);
 }
Ejemplo n.º 3
0
 public Object(Animation Animation)
 {
     this.Animation = Animation;
 }