Skip to content

Commit

Permalink
Cerca del final
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanter134 committed Nov 13, 2024
1 parent 5efb31d commit 636e3c0
Show file tree
Hide file tree
Showing 25 changed files with 19 additions and 15 deletions.
Binary file added assets/GATO1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GATO2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GATO3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GATO4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GOLPE6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/MUERTE1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/MUERTE2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/MUERTE3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/MUERTE4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/MUERTE5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/PERRO1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/PERRO2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/PERRO3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/PERRO4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ladrido.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ataques.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const proyectilL7 = new Proyectil(posicionInicial = new PositionMejorada(x = 32,
const proyectilL8 = new Proyectil(posicionInicial = new PositionMejorada(x = 32, y = 4), id = "L8", velocidad = 100, delay = 300, sentido = dirIzquierda)
const proyectilL9 = new Proyectil(posicionInicial = new PositionMejorada(x = 32, y = 5), id = "L9", velocidad = 100, delay = 300, sentido = dirIzquierda)

const proyectilR10 = new Proyectil(posicionInicial = new PositionMejorada(x = 0, y = 2), id = "R10", velocidad = 100, delay = 1000, sentido = dirDerecha)
const proyectilR11 = new Proyectil(posicionInicial = new PositionMejorada(x = 0, y = 7), id = "R11", velocidad = 100, delay = 1000, sentido = dirDerecha)
const proyectilR10 = new Proyectil(posicionInicial = new PositionMejorada(x = 0, y = 2), id = "R10", velocidad = 150, delay = 1200, sentido = dirDerecha)
const proyectilR11 = new Proyectil(posicionInicial = new PositionMejorada(x = 0, y = 7), id = "R11", velocidad = 150, delay = 1200, sentido = dirDerecha)

class Ataque {
const proyectiles
Expand Down
12 changes: 6 additions & 6 deletions entorno.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ object entorno {
}

method reiniciarJuego() {
const personajes = [morcilla, jefePerro, jefeGato, jefeFinal]
// const personajes = [morcilla, jefePerro, jefeGato, jefeFinal]

jefesDerrotados = 0
// jefesDerrotados = 0

self.limpiarEntorno()
// self.limpiarEntorno()

personajes.forEach({personaje => personaje.estadoInicial()}) // revisar
// personajes.forEach({personaje => personaje.estadoInicial()}) // revisar

morcilla.mostrar()
game.schedule(200,{jefeFinal.ocultar()})
// morcilla.mostrar()
// game.schedule(200,{jefeFinal.ocultar()})
}
}

Expand Down
10 changes: 5 additions & 5 deletions interfaz.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ object fondo inherits Visual(position = game.origin(), image = "vacio.png"){
}
}

const cinematicaDerrota = new Cinematica (id = "derrota", duracionFrame = 300, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])
const cinematicaAtaque = new Cinematica (id = "ataque", duracionFrame = 300, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])
const cinematicaJefePerro = new Cinematica (id = "gato", duracionFrame = 300, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])
const cinematicaJefeGato = new Cinematica (id = "perro", duracionFrame = 300, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])
const cinematicaJefeFinal = new Cinematica (id = "final", duracionFrame = 300, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])
const cinematicaDerrota = new Cinematica (id = "derrota", duracionFrame = 800, frames = ["MUERTE1.jpg", "MUERTE1.jpg", "MUERTE2.jpg", "MUERTE3.jpg", "MUERTE4.jpg", "MUERTE5.jpg"])
const cinematicaAtaque = new Cinematica (id = "ataque", duracionFrame = 800, frames = ["GOLPE1.jpg", "GOLPE2.jpg", "GOLPE3.jpg", "GOLPE4.jpg", "GOLPE5.jpg", "GOLPE6.jpg"])
const cinematicaJefePerro = new Cinematica (id = "perro", duracionFrame = 3000, frames = ["PERRO1.jpg", "PERRO2.jpg", "PERRO3.jpg", "PERRO4.jpg"])
const cinematicaJefeGato = new Cinematica (id = "gato", duracionFrame = 3000, frames = ["GATO1.jpg", "GATO2.jpg", "GATO3.jpg", "GATO4.JPG"])
const cinematicaJefeFinal = new Cinematica (id = "final", duracionFrame = 3000, frames = ["frameEjemplo0.jpg", "frameEjemplo1.jpg", "frameEjemplo2.jpg"])


// =============================================== SONIDOS ===============================================
Expand Down
2 changes: 1 addition & 1 deletion main.wpgm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ program MorcillaGame {
keyboard.d().onPressDo({ morcilla.caminar(1) })
keyboard.a().onPressDo({ morcilla.caminar(-1) })
keyboard.space().onPressDo({ morcilla.saltar(1000) })
keyboard.f().onPressDo({ ladridos.play() })
keyboard.f().onPressDo({ morcilla.ladrar() })

morcilla.crearHitbox()

Expand Down
6 changes: 5 additions & 1 deletion morcilla.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ object morcilla inherits Personaje{

administradorVidas.actualizarVida(vidas)
}

method ladrar() {
ladridos.play()
}
}

class VidaMorcilla {
Expand Down Expand Up @@ -242,4 +246,4 @@ class Hitbox {
const hitboxMorcilla0 = new Hitbox(desvioX = 0, desvioY = 0)
const hitboxMorcilla1 = new Hitbox(desvioX = 0, desvioY = 1)
const hitboxMorcilla2 = new Hitbox(desvioX = 1, desvioY = 0)
const hitboxMorcilla3 = new Hitbox(desvioX = 1, desvioY = 1)
const hitboxMorcilla3 = new Hitbox(desvioX = 1, desvioY = 1)

0 comments on commit 636e3c0

Please sign in to comment.