コード例 #1
0
        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);
        }
コード例 #2
0
 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());
 }
コード例 #3
0
 public GhostSpawner(Game game) : base(game)
 {
     this.ghost = new Ghost.MonogameGhost(game);
     this.SetSpawnKey(Microsoft.Xna.Framework.Input.Keys.T);
 }