This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Zombie Rampage

Return to Zombie Rampage

A new version of this scenario was uploaded on Mon Jul 26 18:43:11 UTC 2010
A new version of this scenario was uploaded on Wed Jul 28 00:42:59 UTC 2010
A new version of this scenario was uploaded on Fri Jul 30 22:37:46 UTC 2010
A new version of this scenario was uploaded on Wed Aug 04 21:33:41 UTC 2010
A new version of this scenario was uploaded on Fri Aug 06 00:45:00 UTC 2010
A new version of this scenario was uploaded on Mon Aug 09 02:01:20 UTC 2010
A new version of this scenario was uploaded on Mon Aug 09 02:02:21 UTC 2010
A new version of this scenario was uploaded on Tue Aug 10 16:40:45 UTC 2010
A new version of this scenario was uploaded on Tue Aug 10 17:11:32 UTC 2010
A new version of this scenario was uploaded on Wed Aug 11 18:53:39 UTC 2010
A new version of this scenario was uploaded on Thu Aug 19 04:36:04 UTC 2010
initialginitialg

2010/9/29

I like the graphics. its way better then mines. im no artist so i just use Paint.
slipkorn_6666slipkorn_6666

2010/9/29

The pictures are not mine, only some effects, but the pictures of the menu, blood, and base are not mine.
escarletescarlet

2010/12/12

Como haces para recoger las armas?. Espero una segunda parte.
slipkorn_6666slipkorn_6666

2010/12/12

Uso la siguiente funcion para saber si el jugador esta tocando algun objeto: private boolean canSee(Class clss) { Actor actor = getOneObjectAtOffset(0, 0, clss); return actor != null; } En esta funcion segun el tipo de objeto que esta tocando simplemente lo elimino y le asigno vida o balas al jugador y escudo a la base. private void eat() { //SI PUEDE VER UN PAQUETE DE SANGRE if(canSee(HealthPack.class)) { //OBTIENE EL PAQUETE DE SANGRE HealthPack h=(HealthPack)getOneIntersectingObject(HealthPack.class); //SE FIJA SI ES PEQUEÑO O GRANDE switch(h.getType()) { //SI ES PEQUEÑO AUMENTA 10 PUNTOS case 0:if((hp+10)>100) hp=100; else hp+=10; //SI ES GRANDE AUMENTA 30 PUNTOS case 1:if((hp+30)>100) hp=100; else hp+=30; } //ELIMINA EL PAQUETE DE SANGRE getWorld().removeObject(h); } //SI ESTA TOCANDO UNA ESCOPETA if(canSee(ShotgunAmmo.class)) { //AUMENTA LAS BALAS DE LA ESCOPETA s.addItem(); //OBTIENE EL OBJETO Y LO ELIMINA ShotgunAmmo sa=(ShotgunAmmo)getOneIntersectingObject(ShotgunAmmo.class); getWorld().removeObject(sa); } //LO MISMO ES PARA LOS DEMAS ITEMS if(canSee(MinigunAmmo.class)) { m.addItem(); MinigunAmmo ma=(MinigunAmmo)getOneIntersectingObject(MinigunAmmo.class); getWorld().removeObject(ma); } if(canSee(BaseArmor.class)) { BaseArmor ba=(BaseArmor)getOneIntersectingObject(BaseArmor.class); Base b=(Base)getWorld().getObjects( Base.class ).get(0); b.addItem(); getWorld().removeObject(ba); } //AQUI SE ACTUALIZAN LAS ETIQUETAS switch(actual) { case 1:s.updateLabels(); break; case 2:m.updateLabels(); break; } } CUALQUIER DUDA PUEDES BAJAR EL CODIGO COMPLETO, Y SOBRE UNA SEGUNDA PARTE LA NETA QUE HUEVA. ORITA ESTOY MUY ATARIADO CON LOS PROYECTOS DE LA UNIVERSIDAD, SALUDOS...
Could you post a source. Me and my freind are trying to make an awesome zombie game, and we cant figure out how to make the zombies follow you. We only how to make them shoot around the map.
You can open the project in the greenfoot IDE and there you can see the code
I know but i did not see a source and therefore could not open it up in the greenfoot IDE.
A new version of this scenario was uploaded on 2020-08-20 21:50:43 UTC