/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { string silkroadPath = @"F:\Silkroad80erCap\"; //Muss noch geändert werden. datapk2 = new pk2.pk2Reader(silkroadPath + @"\Data.pk2"); mediapk2 = new pk2.pk2Reader(silkroadPath + @"\Media.pk2"); mappk2 = new pk2.pk2Reader(silkroadPath + @"\Map.pk2"); m_camera = new Camera(this); m_drawing = new Drawing(this); m_drawing.ShowFPS = true; map = new Heightmap(this); this.Components.Add(m_drawing); this.Components.Add(map); this.Components.Add(m_camera); map.LoadTerrain(168, 98); graphics.PreferMultiSampling = true; graphics.SynchronizeWithVerticalRetrace = true; graphics.ApplyChanges(); base.Initialize(); }