/// <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);

            mGame = new NinjaGame(this.Services, graphics.GraphicsDevice, this);
        }
Exemple #2
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);

            mGame = new NinjaGame(this.Services, graphics.GraphicsDevice, this);
        }
Exemple #3
0
 public Fruit(NinjaGame game, Vector2 startPos, Vector2 initialVelocity, int start)
 {
     this.Game     = game;
     this.IsAlive  = true;
     this.Position = startPos;
     this.Velocity = initialVelocity;
     startTime     = start;
     LoadContent();
 }
Exemple #4
0
 public Fruit(NinjaGame game, Vector2 startPos, Vector2 initialVelocity, int start)
 {
     this.Game = game;
     this.IsAlive = true;
     this.Position = startPos;
     this.Velocity = initialVelocity;
     startTime = start;
     LoadContent();
 }
 public NinjaPlayer(NinjaGame game)
 {
     mGame = game;
     LoadContent();
 }
 public NinjaPlayer(NinjaGame game)
 {
     mGame = game;
     LoadContent();
 }