示例#1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     p           = new Player(Content.Load <Texture2D>("xwing"), Content.Load <Texture2D>("bullet4"), new Vector2(200, 650), new Rectangle(200, 650, 50, 50));
     eL          = new EnemyList(Content.Load <Texture2D>("xwingRotated"));
     eL.LoadContent();
     // TODO: use this.Content to load your game content here
 }
示例#2
0
        private void Die()
        {
            speed      = 0f;
            posision.X = 2000;

            Points.AddPoint();

            EnemyList.DecreaseSpawnTime();
        }