public GhostSpawner(Game game) : base(game) { Ghosts = new List <Ghost.MonogameGhost>(); ghostsToRemove = new List <Ghost.MonogameGhost>(); this.ghost = new Ghost.MonogameGhost(game); this.SetSpawnKey(Microsoft.Xna.Framework.Input.Keys.T); }
public override GameComponent Spawn() { ghost = new Ghost.MonogameGhost(this.Game); ghost.Initialize(); ghost.Location = this.GetRandLocation(ghost.spriteTexture); ghost.Direction = new Vector2(-1, 0); this.instance = ghost; return(base.Spawn()); }
public GhostSpawner(Game game) : base(game) { this.ghost = new Ghost.MonogameGhost(game); this.SetSpawnKey(Microsoft.Xna.Framework.Input.Keys.T); }