public Level_1_Boss() { InitializeComponent(); SkipButton.Visibility = System.Windows.Visibility.Hidden; //SkipButton.Visibility = System.Windows.Visibility.Visible; userCanStrike = true; CharImgBox.Source = new BitmapImage(new Uri("../CodeDay/Character/character.png", UriKind.Relative)); char1.name = "Steve"; char1.energy = 85; char1.health = 90; char1.swaglevel = 0; char1.possibleMoves.Add(new moves() { name = "Shank", description = "basic attack", cost = 6, damage = 8, spriteLocation = "../CodeDay/Character/character shank.png" }); char1.possibleMoves.Add(new moves() { name = "Weed(medical)", description = "Healing and energy!", damage = 0, heal = 20, cost = -5, spriteLocation = "../CodeDay/Character/Character dope.png" }); char1.possibleMoves.Add(new moves() { name = "Pop a cap", description = "pop a cap in his ass!", cost = 15, damage = 14, spriteLocation = "../CodeDay/Character/character shooting.png" }); char1.possibleMoves.Add(new moves() { name = "Nutshot", description = "Use sparingly. Causes revenge.", damage = 29, cost = 30, spriteLocation = "../CodeDay/Character/character kick.png" }); //EnemyImgBox.Source = new BitmapImage(new Uri("../CodeDay/Amish King/Amish king attack.gif", UriKind.Relative)); EnemyImgElement.Source = new Uri("../CodeDay/Amish King/Amish king attack.gif", UriKind.Relative); EnemyImgElement.Play(); noobFighter.name = "AHMISH KING"; noobFighter.health = 100; noobFighter.energy = 100; noobFighter.swaglevel = 10; noobFighter.possibleMoves.Add(new moves() { name = "Chain", description = "You shall be slain at MY hand", cost = 6, damage = 7, spriteLocation = "../CodeDay/Amish King/Amish king chain.gif" }); noobFighter.possibleMoves.Add(new moves() { name = "Lazor", description = "BURN AT THE HAND OF THE LORD!", damage = 30, cost = 25, spriteLocation = "../CodeDay/Amish King/Amish king fire.gif" }); noobFighter.possibleMoves.Add(new moves() { name = "Belt", description = "You gonna get a whoopun, son!", cost = 17, damage = 17, spriteLocation = "../CodeDay/Amish King/Amish king belt.gif" }); for (int i = 0; i < char1.possibleMoves.Count(); i++) { MovesList.Items.Add(char1.possibleMoves[i].name + " Cost: " + char1.possibleMoves[i].cost); } updateStuff(); }
private void Element_MediaEnded(object sender, RoutedEventArgs e) { EnemyImgElement.Position = new TimeSpan(0, 0, 20); EnemyImgElement.Play(); }