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(); }
// 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); } }