protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5_SKULL + "Background"));
            background.Y = gameHeight / 2 - background.Height / 2;
            background.MouseEnabled = false;
            AddSceneObject(background);

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            skull = new HotSpot(new Vector2[] { new Vector2(225, 97),
                                                new Vector2(348, 97),
                                                new Vector2(348, 198),
                                                new Vector2(425, 198),
                                                new Vector2(425, 364),
                                                new Vector2(225, 364) }, hotSpotTexture, "skull");
            AddHotSpot(skull);

            spade = new HotSpot(348, 97, 77, 99, hotSpotTexture, "spade");
            AddHotSpot(spade);

            base.LoadContent();
        }
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2_PAINTING + "Background"));
            background.MouseEnabled = false;
            AddSceneObject(background);

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            pot = new HotSpot(344, 167, 173, 70, hotSpotTexture, "pot");
            AddHotSpot(pot);

            cut = new HotSpot(116, 326, 90, 82, hotSpotTexture, "cut");
            AddHotSpot(cut);

            base.LoadContent();
        }
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_PAINTING + "Background"));
            background.MouseEnabled = false;
            AddSceneObject(background);

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left1 = new HotSpot(0, 70, 50, 120, hotSpotTexture, "exit1");
            AddHotSpot(left1);

            left2 = new HotSpot(0, 280, 50, 130, hotSpotTexture, "exit2");
            AddHotSpot(left2);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit3");
            AddHotSpot(right);

            cut = new HotSpot(4, 215, 91, 57, hotSpotTexture, "cut");
            AddHotSpot(cut);

            hat = new HotSpot(507, 75, 80, 80, hotSpotTexture, "hat");
            AddHotSpot(hat);

            creature = new HotSpot(410, 368, 81, 81, hotSpotTexture, "creature");
            AddHotSpot(creature);

            guy = new HotSpot(158, 89, 41, 51, hotSpotTexture, "guy");
            AddHotSpot(guy);

            base.LoadContent();
        }
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2_CROWN + "Background"));
            background.Y = gameHeight / 2 - background.Height / 2;
            background.MouseEnabled = false;
            AddSceneObject(background);

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            diamonds = new HotSpot(244, 186, 53, 82, hotSpotTexture, "diamonds");
            AddHotSpot(diamonds);

            base.LoadContent();
        }
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2_FORTUNE_TELLER + "Background"));
            background.Y = gameHeight / 2 - background.Height / 2;
            background.MouseEnabled = false;
            AddSceneObject(background);

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            paper = new HotSpot(228, 136, 235, 247, hotSpotTexture, "paper");
            AddHotSpot(paper);

            base.LoadContent();
        }
Exemplo n.º 6
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "Background"));
            AddSceneObject(background);

            upperChains = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "UpperChains"));
            AddSceneObject(upperChains);

            middleChains = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "MiddleChains"));
            AddSceneObject(middleChains);

            lowerChains = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "LowerChains"));
            AddSceneObject(lowerChains);

            matches = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "Matches"), "matches");
            AddSceneObject(matches);

            knife = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "Knife"));
            AddSceneObject(knife);

            coin = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "Coin"));
            AddSceneObject(coin);

            bigCandle = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "BigCandle"));
            AddSceneObject(bigCandle);

            smallCandle = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_1 + "SmallCandle"));
            smallCandle.Visible = false;
            AddSceneObject(smallCandle);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "left");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "right");
            AddHotSpot(right);

            books = new HotSpot(96, 159, 46, 36, hotSpotTexture, "books");
            AddHotSpot(books);

            book = new HotSpot(104, 374, 46, 22, hotSpotTexture, "book");
            AddHotSpot(book);

            doorClosed = new HotSpot(220, 150, 150, 200, hotSpotTexture, "doorClosed");
            AddHotSpot(doorClosed);

            door = new HotSpot(220, 150, 150, 200, hotSpotTexture, "door");
            door.MouseEnabled = false;
            AddHotSpot(door);

            sides = new HotSpot(195, 360, 191, 44, hotSpotTexture, "sides");
            AddHotSpot(sides);

            box = new HotSpot(425, 302, 78, 64, hotSpotTexture, "box");
            AddHotSpot(box);

            painting = new HotSpot(429, 145, 101, 121, hotSpotTexture, "painting");
            painting.MouseEnabled = false;
            AddHotSpot(painting);

            knifePickup = new HotSpot(429, 145, 101, 121, hotSpotTexture, "dagger");
            AddHotSpot(knifePickup);

            candle = new HotSpot(90, 210, 40, 30, hotSpotTexture, "candle");
            AddHotSpot(candle);

            base.LoadContent();
        }
Exemplo n.º 7
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "Background"));
            AddSceneObject(background);

            drawer = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "Drawer"));
            AddSceneObject(drawer);

            key = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "Key"));
            AddSceneObject(key);

            dirt = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "Dirt"));
            AddSceneObject(dirt);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Visible = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            background.Visible = true;
            dirt.Visible = true;

            Sprite aClub = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "A_club"));
            aClub.X = 205;
            aClub.Y = 170;
            AddSceneObject(aClub);

            Sprite aHertz = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "A_hertz"));
            aHertz.X = 207;
            aHertz.Y = 171;
            AddSceneObject(aHertz);

            Sprite aKara = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "A_kara"));
            aKara.X = 204;
            aKara.Y = 168;
            AddSceneObject(aKara);

            Sprite aSpade = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "A_spade"));
            aSpade.X = 207;
            aSpade.Y = 172;
            AddSceneObject(aSpade);

            A = new Sprite[] { aClub, aHertz, aKara, aSpade };

            Sprite dClub = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "D_club"));
            dClub.X = 266;
            dClub.Y = 169;
            AddSceneObject(dClub);

            Sprite dHertz = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "D_hertz"));
            dHertz.X = 271;
            dHertz.Y = 173;
            AddSceneObject(dHertz);

            Sprite dKara = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "D_kara"));
            dKara.X = 266;
            dKara.Y = 172;
            AddSceneObject(dKara);

            Sprite dSpade = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "D_spade"));
            dSpade.X = 264;
            dSpade.Y = 168;
            AddSceneObject(dSpade);

            D = new Sprite[] { dClub, dHertz, dKara, dSpade };

            Sprite jClub = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "J_club"));
            jClub.X = 320;
            jClub.Y = 172;
            AddSceneObject(jClub);

            Sprite jHertz = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "J_hertz"));
            jHertz.X = 319;
            jHertz.Y = 168;
            AddSceneObject(jHertz);

            Sprite jKara = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "J_kara"));
            jKara.X = 321;
            jKara.Y = 170;
            AddSceneObject(jKara);

            Sprite jSpade = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "J_spade"));
            jSpade.X = 320;
            jSpade.Y = 170;
            AddSceneObject(jSpade);

            J = new Sprite[] { jClub, jHertz, jKara, jSpade };

            Sprite kClub = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "K_club"));
            kClub.X = 379;
            kClub.Y = 167;
            AddSceneObject(kClub);

            Sprite kHertz = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "K_hertz"));
            kHertz.X = 381;
            kHertz.Y = 170;
            AddSceneObject(kHertz);

            Sprite kKara = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "K_kara"));
            kKara.X = 381;
            kKara.Y = 172;
            AddSceneObject(kKara);

            Sprite kSpade = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3_SAFE + "K_spade"));
            kSpade.X = 382;
            kSpade.Y = 170;
            AddSceneObject(kSpade);

            K = new Sprite[] { kClub, kHertz, kKara, kSpade };

            for (int i = 1; i < 4; i++)
            {
                A[i].Visible = false;
                D[i].Visible = false;
                J[i].Visible = false;
                K[i].Visible = false;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            handle = new HotSpot(463, 115, 58, 171, hotSpotTexture, "handle");
            handle.MouseEnabled = false;
            AddHotSpot(handle);

            keyPickup = new HotSpot(285, 350, 84, 37, hotSpotTexture, "key");
            keyPickup.MouseEnabled = false;
            AddHotSpot(keyPickup);

            dirtHotspot = new HotSpot(143, 137, 366, 204, hotSpotTexture, "dirt");
            AddHotSpot(dirtHotspot);

            hotspotA = new HotSpot(212, 179, 50, 35, hotSpotTexture);
            hotspotA.MouseEnabled = false;
            AddHotSpot(hotspotA);

            hotspotD = new HotSpot(269, 179, 50, 35, hotSpotTexture);
            hotspotD.MouseEnabled = false;
            AddHotSpot(hotspotD);

            hotspotJ = new HotSpot(323, 179, 50, 35, hotSpotTexture);
            hotspotJ.MouseEnabled = false;
            AddHotSpot(hotspotJ);

            hotspotK = new HotSpot(381, 179, 50, 35, hotSpotTexture);
            hotspotK.MouseEnabled = false;
            AddHotSpot(hotspotK);

            base.LoadContent();
        }
Exemplo n.º 8
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5_BOOK + "Background"));
            background.MouseEnabled = false;
            AddSceneObject(background);

            hole = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5_BOOK + "Hole"));
            hole.Visible = false;
            AddSceneObject(hole);

            key = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5_BOOK + "Key"));
            key.Visible = false;
            AddSceneObject(key);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "exit2");
            AddHotSpot(right);

            keyPickup = new HotSpot(99, 247, 85, 135, hotSpotTexture, "key");
            keyPickup.MouseEnabled = false;
            AddHotSpot(keyPickup);

            bulge = new HotSpot(99, 247, 85, 135, hotSpotTexture, "bulge");
            AddHotSpot(bulge);

            firstPage = new HotSpot(324, 92, 224, 282, hotSpotTexture, "firstPage");
            AddHotSpot(firstPage);

            base.LoadContent();
        }
Exemplo n.º 9
0
 protected void AddHotSpot(HotSpot hotSpot)
 {
     hotSpots.Add(hotSpot);
     displayObjects.Add(hotSpot);
 }
Exemplo n.º 10
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "Background"));
            AddSceneObject(background);

            closedTrapdoor = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "ClosedTrapdoor"));
            closedTrapdoor.Visible = false;
            AddSceneObject(closedTrapdoor);

            openTrapdoor = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "OpenTrapdoor"));
            openTrapdoor.Visible = false;
            AddSceneObject(openTrapdoor);

            knife = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "Knife"));
            AddSceneObject(knife);

            cloth = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "Cloth"));
            AddSceneObject(cloth);

            bird = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "Bird"), "bird");
            bird.Visible = false;
            AddSceneObject(bird);

            birdDown = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_3 + "BirdDown"));
            birdDown.Visible = false;
            AddSceneObject(birdDown);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture);
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture);
            AddHotSpot(right);

            bookFloor = new HotSpot(121, 386, 50, 23, hotSpotTexture, "bookFloor");
            AddHotSpot(bookFloor);

            birdHotspot = new HotSpot(228, 139, 33, 56, hotSpotTexture, "birdHotspot");
            birdHotspot.MouseEnabled = false;
            AddHotSpot(birdHotspot);

            magician = new HotSpot(220, 185, 55, 192, hotSpotTexture, "magician");
            AddHotSpot(magician);

            clothPickup = new HotSpot(203, 244, 27, 60, hotSpotTexture, "cloth");
            AddHotSpot(clothPickup);

            knifePickup = new HotSpot(248, 265, 34, 29, hotSpotTexture, "knife");
            AddHotSpot(knifePickup);

            birdDownHotspot = new HotSpot(236, 384, 55, 29, hotSpotTexture, "birdDownHotspot");
            birdDownHotspot.MouseEnabled = false;
            AddHotSpot(birdDownHotspot);

            umbrella = new HotSpot(289, 359, 50, 23, hotSpotTexture, "umbrella");
            AddHotSpot(umbrella);

            bulge = new HotSpot(361, 370, 109, 25, hotSpotTexture, "bulge");
            AddHotSpot(bulge);

            trapdoor = new HotSpot(361, 370, 109, 25, hotSpotTexture);
            trapdoor.MouseEnabled = false;
            AddHotSpot(trapdoor);

            shelf = new HotSpot(364, 293, 99, 70, hotSpotTexture, "shelf");
            AddHotSpot(shelf);

            painting = new HotSpot(381, 145, 142, 107, hotSpotTexture, "painting");
            AddHotSpot(painting);
        }
Exemplo n.º 11
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Background"));
            background.MouseEnabled = false;
            background.Y = gameHeight / 2 - background.Height / 2;
            AddSceneObject(background);

            open = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Open"));
            open.MouseEnabled = false;
            open.Y = gameHeight / 2 - open.Height / 2;
            open.Visible = false;
            AddSceneObject(open);

            empty = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Empty"));
            empty.MouseEnabled = false;
            empty.Y = gameHeight / 2 - empty.Height / 2;
            empty.Visible = false;
            AddSceneObject(empty);

            knife1 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife1"));
            knife1.X = 405;
            knife1.Y = 276;
            AddSceneObject(knife1);

            knife2 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife2"));
            knife2.X = 350;
            knife2.Y = 335;
            AddSceneObject(knife2);

            knife3 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife3"));
            knife3.X = 276;
            knife3.Y = 233;
            AddSceneObject(knife3);

            knife4 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife4"));
            knife4.X = 315;
            knife4.Y = 183;
            AddSceneObject(knife4);

            knife5 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife5"));
            knife5.X = 300;
            knife5.Y = 116;
            AddSceneObject(knife5);

            knife6 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife6"));
            knife6.X = 254;
            knife6.Y = 95;
            AddSceneObject(knife6);

            knife7 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife7"));
            knife7.X = 178;
            knife7.Y = 192;
            AddSceneObject(knife7);

            knife8 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife8"));
            knife8.X = 153;
            knife8.Y = 125;
            AddSceneObject(knife8);

            knife9 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife9"));
            knife9.X = 220;
            knife9.Y = 153;
            AddSceneObject(knife9);

            knife10 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife10"));
            knife10.X = 204;
            knife10.Y = 97;
            AddSceneObject(knife10);

            knife11 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife11"));
            knife11.X = 179;
            knife11.Y = 61;
            AddSceneObject(knife11);

            knife12 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4_BOX + "Knife12"));
            knife12.X = 151;
            knife12.Y = 41;
            AddSceneObject(knife12);

            knives = new Sprite[] { knife1, knife2, knife3, knife4, knife5, knife6, knife7, knife8, knife9, knife10, knife11, knife12 };

            foreach (Sprite knife in knives)
            {
                knife.Alpha = 0;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(new Vector2[] { new Vector2(20, 95),
                                               new Vector2(20, 415),
                                               new Vector2(300, 415) }, hotSpotTexture, "exit1");
            AddHotSpot(left);

            right = new HotSpot(new Vector2[] { new Vector2(252, 41),
                                                new Vector2(616, 336),
                                                new Vector2(623, 53) }, hotSpotTexture, "exit2");
            AddHotSpot(right);

            openBox = new HotSpot(new Vector2[] { new Vector2(96, 144),
                                                  new Vector2(364, 439),
                                                  new Vector2(491, 328),
                                                  new Vector2(222, 39) },
                                                  hotSpotTexture, "openBox");
            openBox.MouseEnabled = false;
            AddHotSpot(openBox);

            closeBox = new HotSpot(new Vector2[] { new Vector2(239, 49),
                                                   new Vector2(572, 349),
                                                   new Vector2(619, 143),
                                                   new Vector2(400, 40) },
                                                   hotSpotTexture, "closeBox");
            closeBox.MouseEnabled = false;
            AddHotSpot(closeBox);

            pickupMirror = new HotSpot(new Vector2[] { new Vector2(146, 174),
                                                       new Vector2(310, 398),
                                                       new Vector2(421, 333),
                                                       new Vector2(257, 98) },
                                                       hotSpotTexture, "pickupMirror");
            pickupMirror.MouseEnabled = false;
            AddHotSpot(pickupMirror);

            base.LoadContent();
        }
Exemplo n.º 12
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "Background"));
            AddSceneObject(background);

            closedTrapdoor = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "ClosedTrapdoor"), "closedTrapdoor");
            closedTrapdoor.Visible = false;
            AddSceneObject(closedTrapdoor);

            openTrapdoor = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "OpenTrapdoor"), "openTrapdoor");
            openTrapdoor.Visible = false;
            AddSceneObject(openTrapdoor);

            coin = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "Coin"), "coin");
            AddSceneObject(coin);

            smallCandle = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "SmallCandle"), "smallCandle");
            AddSceneObject(smallCandle);

            bigCandle = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "BigCandle"), "bigCandle");
            AddSceneObject(bigCandle);

            matches = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "Matches"));
            AddSceneObject(matches);

            fortuneTeller = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "FortuneTeller"));
            AddSceneObject(fortuneTeller);

            message = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_2 + "Message"));
            message.Visible = false;
            AddSceneObject(message);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "left");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "right");
            AddHotSpot(right);

            painting = new HotSpot(104, 142, 108, 138, hotSpotTexture, "painting");
            AddHotSpot(painting);

            smokeBomb = new HotSpot(108, 326, 38, 38, hotSpotTexture, "smokeBomb");
            AddHotSpot(smokeBomb);

            fabrics = new HotSpot(207, 291, 55, 84, hotSpotTexture, "fabrics");
            AddHotSpot(fabrics);

            fortuneteller = new HotSpot(295, 160, 99, 121, hotSpotTexture, "fortuneteller");
            AddHotSpot(fortuneteller);

            coinSlot = new HotSpot(300, 285, 15, 25, hotSpotTexture, "coinSlot");
            AddHotSpot(coinSlot);

            brokenParts = new HotSpot(288, 314, 28, 62, hotSpotTexture, "brokenParts");
            brokenParts.MouseEnabled = false;
            AddHotSpot(brokenParts);

            messageHotspot = new HotSpot(340, 288, 39, 22, hotSpotTexture, "message");
            messageHotspot.MouseEnabled = false;
            AddHotSpot(messageHotspot);

            canvas = new HotSpot(429, 226, 39, 139, hotSpotTexture, "canvas");
            AddHotSpot(canvas);

            crown = new HotSpot(500, 160, 43, 35, hotSpotTexture, "crown");
            AddHotSpot(crown);

            bunny = new HotSpot(516, 266, 43, 64, hotSpotTexture, "bunny");
            AddHotSpot(bunny);

            matchesPickup = new HotSpot(476, 307, 39, 31, hotSpotTexture, "matches");
            AddHotSpot(matchesPickup);
        }
Exemplo n.º 13
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4 + "Background"));
            AddSceneObject(background);

            bird = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4 + "Bird"));
            AddSceneObject(bird);

            openBox = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4 + "OpenBox"), "openBox");
            openBox.Visible = false;
            AddSceneObject(openBox);

            knife = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_4 + "Knife"));
            AddSceneObject(knife);

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "left");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "right");
            AddHotSpot(right);

            box = new HotSpot(78, 280, 220, 86, hotSpotTexture, "box");
            AddHotSpot(box);

            cloth = new HotSpot(185, 364, 48, 35, hotSpotTexture, "cloth");
            AddHotSpot(cloth);

            cabinet = new HotSpot(332, 305, 75, 86, hotSpotTexture, "cabinet");
            AddHotSpot(cabinet);

            knifePickup = new HotSpot(350, 256, 36, 40, hotSpotTexture, "dagger");
            AddHotSpot(knifePickup);

            hanger = new HotSpot(456, 238, 20, 132, hotSpotTexture, "hanger");
            AddHotSpot(hanger);

            birdHotspot = new HotSpot(454, 184, 27, 47, hotSpotTexture, "bird");
            AddHotSpot(birdHotspot);
        }
Exemplo n.º 14
0
        protected override void LoadContent()
        {
            int gameWidth = this.GraphicsDevice.Viewport.Width;
            int gameHeight = this.GraphicsDevice.Viewport.Height;

            Sprite background = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Background"));
            AddSceneObject(background);

            flare1 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Flare1"));
            AddSceneObject(flare1);

            flare2 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Flare2"));
            AddSceneObject(flare2);

            flare3 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Flare3"));
            AddSceneObject(flare3);

            flare4 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Flare4"));
            AddSceneObject(flare4);

            chosenBook = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "ChosenBook"));
            AddSceneObject(chosenBook);

            mirrorSet = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "MirrorSet"));
            AddSceneObject(mirrorSet);

            mirrorAslope = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "MirrorAslope"));
            AddSceneObject(mirrorAslope);

            mirror1 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Mirror1"));
            AddSceneObject(mirror1);

            mirror2 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Mirror2"));
            AddSceneObject(mirror2);

            mirror3 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Mirror3"));
            AddSceneObject(mirror3);

            mirror4 = new Sprite(this.Game.Content.Load<Texture2D>(@Assets.SCENE_5 + "Mirror4"));
            AddSceneObject(mirror4);

            flares = new Sprite[] { flare1, flare2, flare3, flare4 };
            mirrors = new Sprite[] { mirror1, mirror2, mirror3, mirror4 };

            foreach (Sprite sceneObject in this.SceneObjects)
            {
                sceneObject.MouseEnabled = false;
                sceneObject.Visible = false;
                sceneObject.Y = gameHeight / 2 - sceneObject.Height / 2;
            }

            background.Visible = true;

            Texture2D hotSpotTexture = ColorTexture.Create(this.GraphicsDevice);

            left = new HotSpot(0, 70, 50, gameHeight - 140, hotSpotTexture, "left");
            AddHotSpot(left);

            right = new HotSpot(gameWidth - 50, 70, 50, gameHeight - 140, hotSpotTexture, "right");
            AddHotSpot(right);

            cage = new HotSpot(145, 310, 47, 68, hotSpotTexture, "cage");
            AddHotSpot(cage);

            books = new HotSpot(185, 155, 86, 35, hotSpotTexture, "books");
            AddHotSpot(books);

            skull = new HotSpot(285, 154, 35, 35, hotSpotTexture, "skull");
            AddHotSpot(skull);

            chosenBookHotspot = new HotSpot(360, 148, 49, 49, hotSpotTexture, "chosenBook");
            chosenBookHotspot.MouseEnabled = false;
            AddHotSpot(chosenBookHotspot);

            mirrorLeft = new HotSpot(260, 225, 47, 157, hotSpotTexture, "mirrorLeft");
            mirrorLeft.MouseEnabled = false;
            AddHotSpot(mirrorLeft);

            mirrorRight = new HotSpot(311, 225, 47, 157, hotSpotTexture, "mirrorRight");
            mirrorRight.MouseEnabled = false;
            AddHotSpot(mirrorRight);

            mirror = new HotSpot(266, 230, 83, 160, hotSpotTexture, "mirror");
            AddHotSpot(mirror);
        }