protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Input.LoadInput(); Globals.content = new ContentManager(Services, "Content"); Globals.LoadContent(GraphicsDevice); Level.LoadContent(); Cell.CreateGrid(new Point(-2048, -2048), 400, 400); Rail.LoadContent(); Globals.level = new Level(Cell.GetCell(new Vector2(100, Globals.gameHeight - Cell.cellHeight)), Cell.GetCell(new Vector2(Globals.gameWidth - Cell.cellWidth, 200)), 1, 0, -1, 0, 50, 10, 10, new List <Rail>(), new List <Obstacle>(), new List <Bump>(), new List <Portal>(), new List <Cell>()); Globals.level.SpawnMapRails(); GUI.LoadGUI(Content); editor = new Editor(); }