Пример #1
0
        private void HellCanvas_Initialized(object sender, EventArgs e)
        {
            GoodStory.AddIntro("<LevelIntro>Xavier: Well I suppose that is the first piece of the scepter thing that demon was talking about.");
            GoodStory.AddIntro("<CharacterIntro>Xavier: One piece down just two more to go. I guess I should try going down or the the left to find the other pieces.");
            HellCanvas.Focusable = true;
            HellCanvas.Focus();

            make.MakeItem(MainCharacter, HellCanvas, "../../Object Model/T3.png", TridentPiece);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door1);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door2);
            make.MakeWall(MainCharacter, HellCanvas, "", Wall1);
            make.MakeWall(MainCharacter, HellCanvas, "", Wall2);

            press.ConnectCharacter_and_Canvas(MainCharacter, HellCanvas);
        }
Пример #2
0
        private void HellCanvas_Initialized(object sender, EventArgs e)
        {
            BitmapImage img = new BitmapImage();

            img.BeginInit();
            img.UriSource = new Uri("../../Object Model/MainCharacter.png", UriKind.Relative);
            img.EndInit();

            MainCharacter.Source = img;

            HellCanvas.Focusable = true;
            HellCanvas.Focus();

            make.MakeDoor(MainCharacter, HellCanvas, "", WallNorth);
            make.MakeDoor(MainCharacter, HellCanvas, "", WallEast);
            make.MakeDoor(MainCharacter, HellCanvas, "", WallSouth);
            make.MakeDoor(MainCharacter, HellCanvas, "", DoorWest);
            make.MakeNPC(MainCharacter, HellCanvas, "../../Object Model/Demon.png", DemonCharacter);

            move.ConnectCharacter_and_Canvas(MainCharacter, HellCanvas);
        }
Пример #3
0
        private void CanvasInitialized(object sender, EventArgs e)
        {
            BitmapImage bit = new BitmapImage();

            GoodStory.AddIntro("<LevelIntro>Narrator: This is story is about a young programmer named Xavier. He was your average guy just trying to make " +
                               "it through interviews, little did he know his life was about to change.");
            GoodStory.AddIntro("<LevelIntro>While walking home from work, Xavier notice a car swerve and then hit a tree.");
            GoodStory.AddIntro("<LevelIntro>Xavier: Oh no! That’s a horrible wreck!");
            GoodStory.AddIntro("<LevelIntro>Narrator: He approached the car to find that the lady was bleeding and unconscious, there was also a unusual amount of money that was sitting there for the taking."); //Xavier: I wonder what happened to her. Was she drunk? Wait! Is that an unusually large amount of money? Should I take it and run? It would be easy no one knows" +
                                                                                                                                                                                                                   //" I was here, but she could die if I leave them. Perhaps I should help them instead.");
            GoodStory.AddIntro("<LevelIntro>Narrator: What should Xavier do in this situation? Save her, or take the cash and run?");                                                                              //Xavier did as any person might do.");

            BadStory.AddDialogue("Narrator: Xavier did as any selfish person would do and took the cash.");
            BadStory.AddDialogue("Ironically what Xavier didn't know was as he walks away from the scene the car would explode killing both the woman and our selfish Xavier. ");

            GoodStory.AddIntro("<CharacterIntro>Xavier: Hi im Xavier you are hurt! I'm calling the police.");
            GoodStory.AddIntro("<CharacterIntro>Police: This is the police how may we help you? Just kidding! We are the thought police. We know the situation. Gather " +
                               "three pieces of cloth to be used as bandages to save her life.");

            GoodStory.AddDialogue("Police: Have you found the cloth? Good good. You have just saved this woman's life.");
            GoodStory.AddDialogue("Narrator: Xavier saved the lady, and as she was getting into the ambulance, she told him that he needed to take the cash as a reward for saving her life.");
            GoodStory.AddDialogue("Xavier's inner thoughts: I guess I should head NORTH along the road to head home. There's nothing left for me here.");

            bit.BeginInit();
            bit.UriSource = new Uri(@"../../Object Model/FirstMap.png", UriKind.RelativeOrAbsolute);
            bit.EndInit();

            road.Source = bit;
            make.MakeItem(character, canvas, @"../../Object Model/MONEY.png", money);
            make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall1);
            make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall2);
            make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall3);
            make.MakeDoor(character, canvas, "", Door1);
            make.MakeNPC(character, canvas, @"../../Object Model/Bleed.png", NPC1);

            canvas.Focusable = true;
            canvas.Focus();

            move.ConnectCharacter_and_Canvas(character, canvas);
        }
        private void HellCanvas_Initialized(object sender, EventArgs e)
        {
            GoodStory.AddIntro("<LevelIntro>Xavier: This is it. The last two pieces and then I confront Satan.");
            GoodStory.AddDialogue("Satan: Well Well. I see you have collected all of the pieces to the staff. I geuss this means you rule hell now. If you will head left your prize awaits " +
                                  "you.");

            BitmapImage bit = new BitmapImage();

            bit.BeginInit();
            bit.UriSource = new Uri("../../Object Model/SatanicCircle.png", UriKind.Relative);
            bit.EndInit();

            SatanicGrid.Source = bit;

            bit = new BitmapImage();

            bit.BeginInit();
            bit.UriSource = new Uri("../../Object Model/MainCharacter.png", UriKind.Relative);
            bit.EndInit();

            MainCharacter.Source = bit;

            HellCanvas.Focusable = true;
            HellCanvas.Focus();

            make.MakeItem(MainCharacter, HellCanvas, "../../Object Model/T1.png", Trident1);
            make.MakeItem(MainCharacter, HellCanvas, "../../Object Model/T2.png", Trident2);
            make.MakeNPC(MainCharacter, HellCanvas, "../../Object Model/devil.png", Satan);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door1);
            make.MakeWall(MainCharacter, HellCanvas, "", Wall3);
            make.MakeWall(MainCharacter, HellCanvas, "", Wall1);
            make.MakeWall(MainCharacter, HellCanvas, "", Wall2);

            press.ConnectCharacter_and_Canvas(MainCharacter, HellCanvas);

            Canvas.SetRight(MainCharacter, Canvas.GetLeft(MainCharacter) + MainCharacter.Width);//setting right and bottom of character
            Canvas.SetBottom(MainCharacter, Canvas.GetTop(MainCharacter) + MainCharacter.Height);
        }
Пример #5
0
        private void HellCanvas_Initialized(object sender, EventArgs e)
        {
            HellCanvas.Focusable = true;
            HellCanvas.Focus();

            StoryBox.Focusable = false;

            BitmapImage bit = new BitmapImage();

            bit.BeginInit();
            bit.UriSource = new Uri("../../Object Model/MainCharacter.png", UriKind.Relative);
            bit.EndInit();

            MainCharacter.Source = bit;

            bit = new BitmapImage();

            bit.BeginInit();
            bit.UriSource = new Uri("../../Object Model/SatanicCircle.png", UriKind.Relative);
            bit.EndInit();

            SatanicCircle.Source = bit;

            make.MakeDoor(MainCharacter, HellCanvas, "", Door1);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door2);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door3);
            make.MakeDoor(MainCharacter, HellCanvas, "", Door4);
            make.MakeNPC(MainCharacter, HellCanvas, "../../Object Model/devil.png", Satan);
            make.MakeItem(MainCharacter, HellCanvas, "../../Object Model/Water.png", water);
            make.MakeItem(MainCharacter, HellCanvas, "../../Object Model/Ice.png", ice);

            move.ConnectCharacter_and_Canvas(MainCharacter, HellCanvas);

            BadStory.AddIntro("<LevelIntro>Narrator: Now all Xavier has to do is collect the ice and the water and talk to Satan to start his new-ish life.");
            BadStory.AddIntro("<CharacterIntro>Satan: I see you wish to be my new right hand man. Well your gonna have to work for it! Now give me my water and set up my fan. Maybe in a couple " +
                              "thousands years I will consider you. Now LEAVE! Before I get annoyed.");
        }