/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); SuperGraphics = GraphicsDevice; Global.EntityAtlas = Content.Load <Texture2D>("Graphics\\entity_atlas"); Global.MapAtlas = Content.Load <Texture2D>("Graphics\\gonzalo_map"); if (settings.PlaySound) { SoundEffect soundTrack = Content.Load <SoundEffect>("SoundTracks\\chaesd_by_teh_rievr"); SoundTrack.Load(soundTrack, play: true); } match = GetMatch(); }
public void Initialize() { if (!SoundTrack.IsPlaying) { SoundTrack.Load(Loader.LoadSound("Soundtrack\\timbu_beat")); SoundTrack.Play(); } Sfx.Load("pulo", Loader.LoadSound("SFX\\pulando")); Sfx.Load("pegar_ar", Loader.LoadSound("SFX\\pegando_ar")); Sfx.Load("afulibar_escada", Loader.LoadSound("SFX\\afulibando_escada")); Sfx.Load("rodada", Loader.LoadSound("SFX\\rodando")); Platforms = new List <Platform>(); Platforms.Add(new Platform()); AddPlatforms(); Player = new Timbu(Vector2.Zero); Player.MoveTo(new Vector2(50, Player.Position.Y)); StepPlayerOnPlatform(Platforms.First()); Score = 0; ElapsedTime = 0; deathText = ""; }