Example #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent(SceneManager controller)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            this.controller = controller;


            speler  = new Konijn(1, new Controls(Keys.S, Keys.Q, Keys.A, Keys.Z), new Vector2(800, 250), 1.55F, controller.Content.Load <Texture2D>("brownbunny"), controller.Content.Load <Texture2D>("SnuffelBounds"));
            speler2 = new Konijn(2, new Controls(Keys.Up, Keys.Left, Keys.Down, Keys.Right), new Vector2(880, 320), 1.55F, controller.Content.Load <Texture2D>("greybunny"), controller.Content.Load <Texture2D>("SnuffelBounds"));

            Pitstop = new Pitstop(new Rectangle(11, 219, 155, 310), controller.Content.Load <Texture2D>("RodeBalk"));

            finish = new Finishlijn(new Rectangle(777, 357, 132, 43), controller.Content.Load <Texture2D>("Finish"));

            //speedboost1 = new Powerup(new Vector2(190, 345), controller.Content.Load<Texture2D>("speed"));
            //speedboost2 = new Powerup(new Vector2(890, 625), controller.Content.Load<Texture2D>("SmileOrb"));

            check1 = new Checkpoint(new Rectangle(485, 475, 40, 187), controller.Content.Load <Texture2D>("SnuffelBounds"), 1);
            check2 = new Checkpoint(new Rectangle(40, 370, 270, 53), controller.Content.Load <Texture2D>("SnuffelBounds"), 2);
            check3 = new Checkpoint(new Rectangle(406, 85, 40, 197), controller.Content.Load <Texture2D>("SnuffelBounds"), 3);
            kook   = new heet(new Vector2(267, 399), controller.Content.Load <Texture2D>("pit_l"), controller.Content.Load <Texture2D>("SnuffelBounds"));
            kook1  = new heet(new Vector2(292, 180), controller.Content.Load <Texture2D>("pit_m"), controller.Content.Load <Texture2D>("SnuffelBounds"));
            kook2  = new heet(new Vector2(580, 180), controller.Content.Load <Texture2D>("pit_m"), controller.Content.Load <Texture2D>("SnuffelBounds"));
            kook3  = new heet(new Vector2(604, 445), controller.Content.Load <Texture2D>("pit_s"), controller.Content.Load <Texture2D>("SnuffelBounds"));

            spin1 = new trap(new Vector2(0, 0), new Vector2(1021, 93), controller.Content.Load <Texture2D>("RodeBalk"));
            spin2 = new trap(new Vector2(905, 0), new Vector2(124, 667), controller.Content.Load <Texture2D>("RodeBalk"));
            spin3 = new trap(new Vector2(40, 659), new Vector2(877, 56), controller.Content.Load <Texture2D>("RodeBalk"));
            spin4 = new trap(new Vector2(0, 82), new Vector2(41, 605), controller.Content.Load <Texture2D>("RodeBalk"));
            spin5 = new trap(new Vector2(130, 215), new Vector2(47, 315), controller.Content.Load <Texture2D>("RodeBalk"));
            spin6 = new trap(new Vector2(352, 306), new Vector2(387, 145), controller.Content.Load <Texture2D>("RodeBalk"));



            GUI = new GUIM();

            background = controller.Content.Load <Texture2D>("newtrack");
            konijn1    = controller.Content.Load <Texture2D>("konijnhoofd_bruin");
            konijn2    = controller.Content.Load <Texture2D>("konijnhoofd_grijs");
            // TODO: use this.Content to load your game content here
            font = controller.Content.Load <SpriteFont>("Cartoon12");
        }
Example #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent(SceneManager controller)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            this.controller = controller;

            speler = new Konijn(1,new Controls(Keys.S,Keys.Q,Keys.A,Keys.Z), new Vector2(800, 250), 1.55F, controller.Content.Load<Texture2D>("brownbunny"), controller.Content.Load<Texture2D>("SnuffelBounds"));
            speler2 = new Konijn(2, new Controls(Keys.Up, Keys.Left, Keys.Down, Keys.Right ), new Vector2(880, 320), 1.55F, controller.Content.Load<Texture2D>("greybunny"), controller.Content.Load<Texture2D>("SnuffelBounds"));

            Pitstop = new Pitstop(new Rectangle(11, 219, 155, 310), controller.Content.Load<Texture2D>("RodeBalk"));

            finish = new Finishlijn(new Rectangle(777, 357, 132, 43), controller.Content.Load<Texture2D>("Finish"));

            //speedboost1 = new Powerup(new Vector2(190, 345), controller.Content.Load<Texture2D>("speed"));
            //speedboost2 = new Powerup(new Vector2(890, 625), controller.Content.Load<Texture2D>("SmileOrb"));

            check1 = new Checkpoint(new Rectangle(485, 475, 40, 187), controller.Content.Load< Texture2D>("SnuffelBounds"), 1);
            check2 = new Checkpoint(new Rectangle(40, 370, 270, 53), controller.Content.Load<Texture2D>("SnuffelBounds"), 2);
            check3 = new Checkpoint(new Rectangle(406, 85, 40, 197), controller.Content.Load<Texture2D>("SnuffelBounds"), 3);
            kook = new heet(new Vector2(267, 399), controller.Content.Load<Texture2D>("pit_l"), controller.Content.Load<Texture2D>("SnuffelBounds"));
            kook1 = new heet(new Vector2(292, 180), controller.Content.Load<Texture2D>("pit_m"), controller.Content.Load<Texture2D>("SnuffelBounds"));
            kook2 = new heet(new Vector2(580, 180), controller.Content.Load<Texture2D>("pit_m"), controller.Content.Load<Texture2D>("SnuffelBounds"));
            kook3 = new heet(new Vector2(604, 445), controller.Content.Load<Texture2D>("pit_s"), controller.Content.Load<Texture2D>("SnuffelBounds"));

            spin1 = new trap(new Vector2(0, 0), new Vector2(1021,93), controller.Content.Load<Texture2D>("RodeBalk"));
            spin2 = new trap(new Vector2(905, 0), new Vector2(124,667), controller.Content.Load<Texture2D>("RodeBalk"));
            spin3 = new trap(new Vector2(40, 659), new Vector2(877, 56), controller.Content.Load<Texture2D>("RodeBalk"));
            spin4 = new trap(new Vector2(0, 82), new Vector2(41, 605), controller.Content.Load<Texture2D>("RodeBalk"));
            spin5 = new trap(new Vector2(130, 215), new Vector2(47, 315), controller.Content.Load<Texture2D>("RodeBalk"));
            spin6 = new trap(new Vector2(352, 306), new Vector2(387, 145), controller.Content.Load<Texture2D>("RodeBalk"));

            GUI = new GUIM();

            background = controller.Content.Load<Texture2D>("newtrack");
            konijn1 = controller.Content.Load<Texture2D>("konijnhoofd_bruin");
            konijn2 = controller.Content.Load<Texture2D>("konijnhoofd_grijs");
            // TODO: use this.Content to load your game content here
            font = controller.Content.Load<SpriteFont>("Cartoon12");
        }
 public void Initialise(Konijn controller)
 {
     this.controller = controller;
 }
 public void Initialise(Konijn controller)
 {
     this.controller = controller;
 }