Esempio n. 1
0
 public override void Activate(bool instancePreserved)
 {
     base.Activate(instancePreserved);
     AxiosTitleFile file = new AxiosTitleFile("Levels/level" + level.ToString() + ".xml.gz");
     GZipStream zipstream = new GZipStream(file.GetStream(FileMode.Open), CompressionMode.Decompress);
     Level = Level.FromStream(zipstream, this);
     World.Gravity = new Vector2(0, 10f);
 }
Esempio n. 2
0
 public void LoadLevelFromGZFile(string s)
 {
     AxiosTitleFile file = new AxiosTitleFile(s);
     GZipStream zipstream = new GZipStream(file.GetStream(FileMode.Open), CompressionMode.Decompress);
     this.LoadLevelFromStream(zipstream);
 }
Esempio n. 3
0
 public void LoadLevelFromFile(string s)
 {
     AxiosTitleFile file = new AxiosTitleFile(s);
     this.LoadLevelFromStream(file.GetStream(FileMode.Open));
 }