Exemplo n.º 1
0
 //Tries to create the Players tail in wormmode
 private static void CheckCreateWorm()
 {
     if (stats.WormForm && WormForm == null)
     {
         WormForm = new PlayerWorm(wForm, 0, stats.WormLength, null);
     }
 }
 //Handles the initial growth of the player's worm
 protected override void SpawnChild()
 {
     if (growChild && timer > GROWTH_TIME && Child == null && ChainPosition < wormLength)
     {
         Vector2 pos = SetChildPos(position);
         Child = new PlayerWorm(tex, ChainPosition + 1, wormLength, (EWorm)this);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Resets all relevant variables to original state
 /// </summary>
 public static void ResetAll()
 {
     blasts.Clear();
     position = new Vector2(Game1.ScreenX / 2, Game1.ScreenY / 2);
     velocity = Vector2.Zero;
     bullets.Clear();
     growers.Clear();
     Points          = 0;
     Multiplier      = 1;
     Score           = 0;
     sBombTimer      = MIN_SBOMB_TIMER;
     finalTimer      = 0;
     startFinalTimer = false;
     BoostGrowth     = false;
     IsDead          = false;
     WormForm        = null;
 }