コード例 #1
0
        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   = "";
        }