예제 #1
0
 public void InstanciarMonster(monstruos tipo)
 {
     ghost            = ConfiguradorMonstruo.ConfigurarMonstruo(tipo);
     SonidosRandoms   = ConfiguradorMonstruo.ConfigurarSonidosRandoms();
     sonidoAtrapa3    = ConfiguradorMonstruo.ObtenerSonidoDeGameOver();
     this.lookAt      = new TGCVector3(ghost.Position);
     VelocidadMonster = 500f;
 }
예제 #2
0
 internal void InstanciarMonster(Personaje personaje, TGCVector3 posicionDeAlejamiento, monstruos tipo)
 {
     //Solo nos interesa el primer modelo de esta escena (tiene solo uno)
     ghost           = ConfiguradorMonstruo.ConfigurarMonstruo(tipo);
     SonidosRandoms  = ConfiguradorMonstruo.ConfigurarSonidosRandoms();
     sonidoAtrapa3   = ConfiguradorMonstruo.ObtenerSonidoDeGameOver();
     ghost.Position  = new TGCVector3(posicionDeAlejamiento);
     ghost.Transform = TGCMatrix.Translation(posicionDeAlejamiento.X, posicionDeAlejamiento.Y - 100, posicionDeAlejamiento.Z);
     this.lookAt     = new TGCVector3(ghost.Rotation);
     RotarMesh(personaje);
 }