Exemplo n.º 1
0
 public void Render()
 {
     time += GlobalConcepts.GetInstance().GetElapsedTime();
     if (time > 100f)
     {
         time = 0f;
     }
     sound.GetSound("Vida").Position = GetPosition();
     CheckTime();
     transformation = TGCMatrix.RotationYawPitchRoll(GlobalConcepts.GetInstance().GetElapsedTime(), 0, 0) * transformation;
     Transform();
     mesh.Effect.SetValue("time", time);
     if (this.IsInView(this.mesh) && visible)
     {
         this.mesh.Render();
     }
 }
        public override void Update()
        {
            if (gameModel.Input.keyDown(Key.Return))
            {
                SoundsManager backgroundMusic = new SoundsManager();
                backgroundMusic.AddSound(TGCVector3.Empty, 50f, 0, "Init\\song.wav", "song", false);
                this.gameModel.SetState(new CharacterSelect(gameModel, backgroundMusic.GetSound("song")));
            }


            Scene.GetInstance().camera.rotateY(0.0005f);
        }
Exemplo n.º 3
0
 public void PickUp()
 {
     soundManager.GetSound("PickUp").play();
 }