private void CanvasInitialized(object sender, EventArgs e)//allows the canvas to take input which allows things like image movement { BitmapImage bit = new BitmapImage(); MakeObstacle make = new MakeObstacle(); story.AddIntro("Hi im James you are hurt! I'm calling the police."); story.AddIntro("This is the police how may we help you? Just kidding! We are the thought police. We know the situation. Gather three bandages to save their life."); story.AddDialogue("Have you found the bandages?"); story.AddDialogue("Good good you have just saved this woman's life. I feel some good fortune coming your way sir or madam."); story.AddDialogue("It's sir."); story.AddDialogue("Yeah I don't care your services are no longer needed please leave and continue with your life. By please I mean leave before I bring you in for some made " + "up thought crime."); bit.BeginInit(); bit.UriSource = new Uri(@"../../Object Model/ROAD.png", UriKind.RelativeOrAbsolute); bit.EndInit(); /*<Fix> Added the file and contents of the file to the project. />*/ //road.Source = bit; make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall1);//gotta open the new graphics in VS before they will work properly make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall2); make.MakeWall(character, canvas, @"../../Object Model/Wall.png", wall3); make.MakeDoor(character, canvas, "", Door1); make.MakeItem(character, canvas, @"../../Object Model/GUY.png", item1); make.MakeNPC(character, canvas, @"../../Object Model/GUY.png", NPC1); canvas.Focusable = true; canvas.Focus(); }
public Level2BadEnding() { make = new MakeObstacle(); CollectItm = new ItemCollection(); observe = new Inventory(CollectItm); BadStory = new Story(); move = new KeyPresses(); InitializeComponent(); }
public Level2TridentPieces2And3() { make = new MakeObstacle(); CollectItm = new ItemCollection(); inv = new Inventory(CollectItm); GoodStory = new Story(); press = new KeyPresses(); LevelFinished = false; GameBeaten = false; InitializeComponent(); }
public MainWindow() { move = new KeyPresses(); GoodStory = new Story(); BadStory = new Story(); ItmCollect = new ItemCollection(); observe = new Inventory(ItmCollect); make = new MakeObstacle(); LevelFinished = false; InitializeComponent(); }
public Level2Bad() { GoodStory = new Story(); BadStory = new Story(); CollectItm = new ItemCollection(); observe = new Inventory(CollectItm); make = new MakeObstacle(); move = new KeyPresses(); GoodStory.AddIntro("<LevelIntro>Narrator: Since Xavier wanted to be a murderer, he was sent straight to Hell and had no choice in the matter. " + "Xavier noticed what appeared to be a demon trying to get his attention so Xavier approaches him."); GoodStory.AddIntro("<CharacterIntro>Demon: You came at the right time! Satan holds special events to make sure we always have fun down here! This week there is " + "the option to try and steal the throne. Now, I know this sounds crazy, but no one has signed up for some reason, so you’d be the first! Other than that, " + "you could become the new right hand man! I was kicked out of the running for wasting water. If you wish to do this then take this fan. Then go and collect ice and water. " + "Take them to Satan."); GoodStory.AddIntro("<CharacterIntro>Narrator: Xavier is faced with some hard choices, but he is quite arrogant and thus decides to take on Satan."); InitializeComponent(); }