public Vehiculo(TwistedMetal env) : base(env) { this.setVelocidadY(0); base.setAluraMaxima(100); // direcionadores(); iniciarNivelDeVida(); iniciarWeaponCount(); iniciarHumo(); }
public TwistedMetal(string mediaDir, string shadersDir) : base(mediaDir, shadersDir) { Category = Game.Default.Category; Name = Game.Default.Name; Description = Game.Default.Description; myInstance = this; this.MediaDir = mediaDir; this.ShadersDir = shadersDir; }
public Vehiculo(TgcMesh Mesh, TwistedMetal env) : base(env) { base.setMesh(Mesh); // base.getMesh().(pos); base.setVelocidadY(0); base.setAluraMaxima(20); // direcionadores(); sonidoPorDaño = new Sonido(env.MediaDir, env.ShadersDir, env.DirectSound); sonidoPorMuerte = new Sonido(env.MediaDir, env.ShadersDir, env.DirectSound); updateTGCArrow(); iniciarNivelDeVida(); iniciarWeaponCount(); iniciarHumo(); }
protected override void dañoPorDisparo() { this.lifeLevel.recibirDaño(2); if (this.lifeLevel.nivelDeVida() == 0 && this.estaMuerto == false) { TwistedMetal.getInstance().playSonidoPorMuerte(); this.estaMuerto = true; } else { if (this.lifeLevel.nivelDeVida() > 0) { playSonidoPorDaño(); } } }
public Ciudad(TwistedMetal env) { //Device de DirectX para crear primitivas. this.env = env; myInstance = this; var d3dDevice = D3DDevice.Instance.Device; this.MediaDir = this.env.MediaDir; //Carga Texturas veredaTexture = TgcTexture.createTexture(D3DDevice.Instance.Device, MediaDir + "Texturas\\piso2.jpg"); cordonTexture = TgcTexture.createTexture(D3DDevice.Instance.Device, MediaDir + "Texturas\\granito.jpg"); //Crea el piso de fondo loader = new TgcSceneLoader(); meshes = new System.Collections.Generic.List <TgcMesh>(); edificios = new System.Collections.Generic.List <TgcMesh>(); semaforos = new System.Collections.Generic.List <TgcMesh>(); veredas = new System.Collections.Generic.List <TgcPlane>(); cordones = new System.Collections.Generic.List <TgcPlane>(); paredes = new System.Collections.Generic.List <TgcPlane>(); calles = new System.Collections.Generic.List <TgcPlane>(); arboles = new System.Collections.Generic.List <TgcMesh>(); items = new System.Collections.Generic.List <TgcMesh>(); LpostesDeLuz = new System.Collections.Generic.List <TgcMesh>(); crearPisoDeFondo(); crearEdificios(); meshes.AddRange(edificios); crearVeredas(); crearParedes(); // crearAuto(); crearSemaforos(); meshes.AddRange(semaforos); crearPlantas(1); crearPlantas(70); // crearRueda(); iniciarCielo(); crearItems(); // iniciarColisionador(); }