Skip to content

Commit

Permalink
Agregando variedad de magos(plantas) con sus imagenes (falta patapum)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasSchkurko committed Oct 8, 2024
1 parent 2d76f2b commit d1610bb
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 5 deletions.
Binary file added Cosas_juego/mago enojado.psd
Binary file not shown.
Binary file added Cosas_juego/mago fuego.psd
Binary file not shown.
Binary file added Cosas_juego/mago healer.psd
Binary file not shown.
Binary file added Cosas_juego/mago hielo.png
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 Cosas_juego/mago piedra.psd
Binary file not shown.
Binary file removed assets/mago1.png
Binary file not shown.
Binary file added assets/magoEnojado.png
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/magoFuego.png
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/magoHealer.png
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/magoHielo.png
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/magoPiedra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions generadorDePlantas.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ object generadorDePlantas {
nombreParaPlanta = new Papa(position= posicion)
else if (planta=="guisante")
nombreParaPlanta = new Guisante(position= posicion)
else if (planta=="cactus")
nombreParaPlanta = new Cactus(position= posicion)
else if (planta=="girasol")
nombreParaPlanta = new Girasol(position= posicion)
else if (planta=="zapallo enojado")
nombreParaPlanta = new ZapalloEnojado(position= posicion)


plantas.add(nombreParaPlanta)/*se añade a la lista de enemigos activos*/
return game.addVisual(nombreParaPlanta)/*muestra al enemigo en el juego*/
}
Expand Down
6 changes: 6 additions & 0 deletions menu.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ object menu {
game.addVisual(papaTienda)
const guisanteTienda = new Guisante(position = game.at(1,5))
game.addVisual(guisanteTienda)
const girasolTIenda = new Girasol(position = game.at(2,5))
game.addVisual(girasolTIenda)
const cactusTienda = new Cactus(position = game.at(3,5))
game.addVisual(cactusTienda)
const zapalloTienda = new ZapalloEnojado(position = game.at(4,5))
game.addVisual(zapalloTienda)
}
}

81 changes: 76 additions & 5 deletions plantas.wlk
Original file line number Diff line number Diff line change
@@ -1,29 +1,100 @@
class Papa{
class Papa{ //nota de nico: es una nuez >:(
const position

const property tipo = "papa"
var property vida=100
var property vida=300
method position() = position
var property imagen = "golondrina.png"
var property imagen = "magoPiedra.png"
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"
}

// No realiza ninguna accion, es un "escudo" asi que deberia tener mucha vida
}

class Guisante{
const position
const property tipo = "guisante"
var property vida=100
method position() = position
var property imagen = "mago1.png"
var property imagen = "magoFuego.png"
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"

// Dispara proyectiles normales
}

class Patapum{
const position
const property tipo = "patapum"
var property vida=1
method position() = position
var property imagen = "magoEnojado.png" //hacer mago musulman
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"

// Cuando colisiona deberia explotar y matar a los zombies que esten colisionando con el

}

class Cactus{
const position
const property tipo = "cactus"
var property vida=100
method position() = position
var property imagen = "magoHielo.png"
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"

//Dispara proyectiles perforantes (no hacer la mecanica del cactus que sube y baja)
}

class Girasol{
const position
const property tipo = "girasol"
var property vida=100
method position() = position
var property imagen = "magoHealer.png"
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"

//Aumenta la generacion de soles x segundo
}

class ZapalloEnojado{
const position
const property tipo = "zapallo enojado"
var property vida=1
method position() = position
var property imagen = "magoEnojado.png"
method image() = imagen

method recibeDanio(danio) {
self.vida(self.vida() - danio)
}
method queSoy()="planta"

//OH NO ES EL LANZACOHETES DAVE! HAGAN ALGO CON ESE SUJETO!!! Tranquilos... yo me encargo. Soy el Zapallo Enojado >:)
}


const pepe = new Guisante (position=game.at(0,0))

0 comments on commit d1610bb

Please sign in to comment.