Exemple #1
0
 public void spawnMinion()
 {
     Minion minion = new Minion();
     minion.setPosition(spawnPoint);
     addMinion(minion);
     minion.setPath(minionPath.Clone());
 }
Exemple #2
0
 public void addMinion(Minion minion)
 {
     minions.Add(minion);
     minion.setContainingMap(this);
 }
Exemple #3
0
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            Input.Update();

            if (Input.IsKeyPressed(Keys.I))
            {
                playerMinion = new Minion();
                map.addMinion(playerMinion);
            }

            updateCamera();

            map.update();
        }