static public void LoadLevel() { egy = new LevelLoader(LevelList.Actual()); Music.PlayLevel(LevelList.Music()); #region kekszar kekSzar = new Rectangle(); kekSzar.Name = "kekSzar"; //kekSzar.Fill = Brushes.Blue; ImageBrush myBrush = new ImageBrush(); myBrush.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Content/Image/player_right.png", UriKind.RelativeOrAbsolute)); kekSzar.Fill = myBrush; kekSzar.HorizontalAlignment = HorizontalAlignment.Left; kekSzar.Height = Meretezes.playermag; kekSzar.Width = Meretezes.playerszell; kekSzar.VerticalAlignment = VerticalAlignment.Top; kekSzar.Margin = new Thickness(Character.LastLeft, Character.LastTop, 0, 0); kekSzar.SetValue(Grid.RowSpanProperty, 200); kekSzar.SetValue(Grid.ColumnSpanProperty, 2000); mw.Content = egy.racs; g = (mw.Content as Grid); g.Margin = new Thickness(Character.LastMapLeft, 0, 0, 0); g.Children.Add(kekSzar); #endregion mw.Content = g; m = new Mozgas(kekSzar, egy, g); }
private void NextLevel() { if (bgrun) { LevelList.NextLevel(); Character.ReLoad(); Fokepernyo.LoadLevel(); } bgrun = false; }