public override void Load() { stage = new Stage(game, "level.tmx"); hud = new GuiHUD(game, sb); robot = new Robot(game, stage); CenterCamera(); drawComps = new List <DrawComparable>(stage.objects); drawComps.Add(robot); MediaPlayer.Play(game.Content.Load <Song>("SpaceDub_V1")); MediaPlayer.IsRepeating = true; blackHole = game.Content.Load <Texture2D>("blackhole"); bhsize = new Vector2(blackHole.Width, blackHole.Height); }
public override void Load() { stage = new Stage(game, "level.tmx"); hud = new GuiHUD(game, sb); robot = new Robot(game, stage); CenterCamera(); drawComps = new List<DrawComparable>(stage.objects); drawComps.Add(robot); MediaPlayer.Play(game.Content.Load<Song>("SpaceDub_V1")); MediaPlayer.IsRepeating = true; blackHole = game.Content.Load<Texture2D>("blackhole"); bhsize = new Vector2(blackHole.Width, blackHole.Height); }