-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agregando variedad de magos(plantas) con sus imagenes (falta patapum)
- Loading branch information
1 parent
2d76f2b
commit d1610bb
Showing
14 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |