public void Load(ContentManager Content, GraphicsDevice dev) { //Animaciones mictSentado = new Leer_Textura(Content.Load <Texture2D>("Acciones/miclantechutli"), 236, 0.25f, false); mictEnfadado = new Leer_Textura(Content.Load <Texture2D>("Acciones/MicltantechutliEnojado"), 236, 0.25f, true); mictMandarAtaque = new Leer_Textura(Content.Load <Texture2D>("Acciones/MicltantechutliEnojado"), 236, 0.25f, true); mictComiendo = new Leer_Textura(Content.Load <Texture2D>("Miclantechutli/Miclantechutli8"), 311, 0.15f, true); mictText = Content.Load <Texture2D>("Rectangles/RectangleMicltantechutli"); sillaText = Content.Load <Texture2D>("Rectangles/sillaMiclantichutli"); sillaPos.X = POSICION_SILLA_INICIAL; //GraphicsDeviceManager.DefaultBackBufferWidth - (236); sillaPos.Y = 1050; //mictText.Height; //El rectangulo de colision mictlPos.X = POSICION_MICLAN_INICIAL;//GraphicsDeviceManager.DefaultBackBufferWidth - (236); mictlPos.Y = 900; //El sprite jefePosicion.X = POSICION_INICIAL; //GraphicsDeviceManager.DefaultBackBufferWidth - (236 / 2); jefePosicion.Y = 1215; //GraphicsDeviceManager.DefaultBackBufferHeight - (90); jefeRect = new Rectangle((int)mictlPos.X - 100, (int)mictlPos.Y, mictText.Width, mictText.Height); sillaRect = new Rectangle((int)sillaPos.X, (int)sillaPos.Y, sillaText.Width, sillaText.Height); this.Content = Content; }
public void Load(ContentManager Content) { reaper = new Leer_Textura(Content.Load <Texture2D>("Acciones/zombieDer"), 61, 0.12f, true); reaper = new Leer_Textura(Content.Load <Texture2D>("Acciones/zombieIzq"), 61, 0.12f, true); reaperText = Content.Load <Texture2D>("Rectangles/RectangleZombie"); }
public void Load(ContentManager Content) { this.Content = Content; Agachar = new Leer_Textura(Content.Load <Texture2D>("Player/Agachar"), 55, 0.08f, false); Ataque_Arco = new Leer_Textura(Content.Load <Texture2D>("Player/Ataque_Arco"), 80, 0.08f, false); Ataque_Paraguas = new Leer_Textura(Content.Load <Texture2D>("Player/Ataque_Paraguas"), 80, 0.05f, false); Ataque_Paraguas_Agachado = new Leer_Textura(Content.Load <Texture2D>("Player/Ataque_Paraguas_Agachado"), 75, 0.08f, false); BackFlip = new Leer_Textura(Content.Load <Texture2D>("Player/Backflip"), 108, 0.10f, false); Barrida = new Leer_Textura(Content.Load <Texture2D>("Player/Barrida"), 115, 0.05f, false); Golpe = new Leer_Textura(Content.Load <Texture2D>("Player/Golpe"), 124, 0.05f, false); Caida = new Leer_Textura(Content.Load <Texture2D>("Player/Caida"), 65, 0.05f, false); Correr = new Leer_Textura(Content.Load <Texture2D>("Player/Correr"), 75, 0.08f, true); Herido = new Leer_Textura(Content.Load <Texture2D>("Player/Herido"), 60, 0.10f, true); Inactivo = new Leer_Textura(Content.Load <Texture2D>("Player/Inactivo"), 70, 0.12f, false); Muerte = new Leer_Textura(Content.Load <Texture2D>("Player/Muerte"), 80, 0.10f, false); Paralizado = new Leer_Textura(Content.Load <Texture2D>("Player/Paralizado"), 110, 0.05f, true); Saltar = new Leer_Textura(Content.Load <Texture2D>("Player/Saltar"), 61, 0.12f, false); paraguard_derecha = Content.Load <Texture2D>("Armas/Paraguas_Protector_Derecha"); paraguard_izquierda = Content.Load <Texture2D>("Armas/Paraguas_Protector_Izquierda"); paraguas = Content.Load <Texture2D>("HUD/Paraguas"); textura_cuerpo = Content.Load <Texture2D>("Rectangles/RectangleHit"); textura_plataforma = Content.Load <Texture2D>("Rectangles/RectangleStand"); textura_paraguas = Content.Load <Texture2D>("Rectangles/RectangleWhip"); }
public void PlayAnimation(Leer_Textura newAnimacion) { if (animacion == newAnimacion) { return; } animacion = newAnimacion; frameIndex = 0; timer = 0; }
//+++++++++++++++++++++++++ METODOS OBLIGADOS DEL JUEGO ++++++++++++++++++++++++++++++++++++++ public void Load(ContentManager Content) { caminar = new Leer_Textura(Content.Load <Texture2D>("Acciones/Caminar"), 61, 0.12f, true); stand = new Leer_Textura(Content.Load <Texture2D>("Acciones/Stand"), 80, 0.10f, false); dies = new Leer_Textura(Content.Load <Texture2D>("Acciones/Die"), 80, 0.10f, false); hurts = new Leer_Textura(Content.Load <Texture2D>("Acciones/Herir"), 60, 0.10f, true); atacar = new Leer_Textura(Content.Load <Texture2D>("Acciones/SimAtk"), 80, 0.12f, false); saltar = new Leer_Textura(Content.Load <Texture2D>("Acciones/Saltar"), 61, 0.12f, false); // RECTANGULOS UTILIZADOS PARA LAS COLISIONES starhitText = Content.Load <Texture2D>("Rectangles/RectangleHit"); }
//+++++++++++++++++++++++++ METODOS OBLIGADOS DEL JUEGO ++++++++++++++++++++++++++++++++++++++ public void Load(ContentManager Content) { caminar = new Leer_Textura(Content.Load <Texture2D>("Acciones/Caminar"), 61, 0.12f, true); saltar = new Leer_Textura(Content.Load <Texture2D>("Acciones/Saltar"), 61, 0.12f, false); stand = new Leer_Textura(Content.Load <Texture2D>("Acciones/Stand"), 80, 0.10f, false); dies = new Leer_Textura(Content.Load <Texture2D>("Acciones/Die"), 80, 0.10f, false); atacar = new Leer_Textura(Content.Load <Texture2D>("Acciones/SimAtk"), 80, 0.12f, false); hurts = new Leer_Textura(Content.Load <Texture2D>("Acciones/Herir"), 60, 0.10f, true); bflip = new Leer_Textura(Content.Load <Texture2D>("Acciones/Backflip"), 80, 0.12f, false); // ATAQUE AGACHADO cAtk = new Leer_Textura(Content.Load <Texture2D>("Acciones/CAttack"), 70, 0.05f, false); // RECTANGULOS UTILIZADOS PARA LAS COLISIONES hitText = Content.Load <Texture2D>("Rectangles/RectangleHit"); //health.Load(Content); fuego.Load(Content); this.Content = Content; //ball.Load(Content); }
public void Load(ContentManager Content) { Cabeza = new Leer_Textura(Content.Load <Texture2D>("Rectangles/Platform"), 65, 0.12f, true); cabezaText = Content.Load <Texture2D>("Rectangles/RectangleDeath"); }
public void Load(ContentManager Content) { cierraGirando = new Leer_Textura(Content.Load <Texture2D>("Acciones/cierra"), 62, 0.25f, true); cierraText = Content.Load <Texture2D>("Rectangles/RectangleCierra"); }
public void Load(ContentManager Content) { ObsBall = new Leer_Textura(Content.Load <Texture2D>("Rectangles/ObsBall"), 50, 0.12f, false); obsBallText = Content.Load <Texture2D>("Rectangles/RectangleDeath"); }