Esempio n. 1
0
 // Ifs allow for diagonal movement, if-else will prevent diagonal movement
 public override void Update(Vector2 OFFSET)
 {
     spawnTimer.UpdateTimer();
     if (spawnTimer.Test())
     {
         SpawnMob();
         spawnTimer.ResetToZero();
     }
     base.Update(OFFSET);
 }
Esempio n. 2
0
        public override void Update(Vector2 OFFSET, Player ENEMY)
        {
            spawnTimer.UpdateTimer();

            if (spawnTimer.Test())
            {
                SpawnEggSac();
                spawnTimer.ResetToZero();
            }

            base.Update(OFFSET, ENEMY);
        }
Esempio n. 3
0
        public override void Update(Vector2 OFFSET, Player ENEMY)
        {
            shotTimer.UpdateTimer();

            if (shotTimer.Test())
            {
                ShootArrow(ENEMY);
                shotTimer.ResetToZero();
            }

            base.Update(OFFSET);
        }