示例#1
0
 public void MakeNinjaMario()
 {
     state.MakeNinjaMario();
     if (throwingStarCount < ValueHolder.maxThrowingStars)
     {
         if (projectileTimer == 0)
         {
             if (isLeft)
             {
                 throwingStar = new ThrowingStar(new Vector2(position.X - ValueHolder.projectileXSpawn, position.Y +
                                                             ValueHolder.projectileYSpawn), true);
             }
             else
             {
                 throwingStar = new ThrowingStar(new Vector2(position.X + ValueHolder.projectileXSpawn, position.Y +
                                                             ValueHolder.projectileYSpawn), false);
             }
             Game1.GetInstance().level.levelThrowingStars.Add(throwingStar);
             throwingStarCount++;
         }
     }
     isBig = true;
 }