Exemple #1
0
 public Hud(int x, int y, int w, int h, SpriteBatch s, Player p, Camera g, Level level)
     : base(x, y, w, h)
 {
     sprite = s;
     player = p;
     view = g;
     Check();
 }
Exemple #2
0
 // string world is a directory
 public World(string world, StreamReader s)
 {
     currentLevel = 0;
     levelFiles = Directory.GetFiles("world");
     foreach (string level in levelFiles)
     {
         Level newLevel = new Level(level, s);
         levels.Add(newLevel);
     }
 }