Esempio n. 1
0
 public IItemObjects spawnCoin()
 {
     SoundEffectFactory.Coin();
     dispenseItemFlag = false;
     return(new BoxCoin((int)location.X, (int)location.Y - UtilityClass.itemOffSet));
 }
 public void Execute()
 {
     SoundEffectFactory.Coin();
     coin.setCollisionRectangle(new Rectangle(UtilityClass.zero, UtilityClass.zero, UtilityClass.zero, UtilityClass.zero));
     ((Mario)player).AddCoin();
 }
 public IItemObjects dispenseCoin()
 {
     SoundEffectFactory.Coin();
     return(new BoxCoin((int)location.X, (int)location.Y - UtilityClass.itemOffSet));
 }