/// <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); // music = Content.Load<Song> ("BennyHillTheme"); // MediaPlayer.Play (music); items=new List<Collectable>(); player = new Player (spriteBatch, Content); items.Add(new Collectable(spriteBatch, Content, rand.Next(GraphicsDevice.Viewport.Width), 0)); // TODO: use this.Content to load your game content here scoreFont = Content.Load<SpriteFont> ("SpriteFont1"); FontPos = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2, graphics.GraphicsDevice.Viewport.Height / 10); }