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