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); }
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); }
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); }
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."); }