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

Report as inappropriate.

slipkorn_6666
slipkorn_6666 presents ...

2010/7/24

Zombie Rampage

FIRST OF ANYTHING SORRY FOR MY ENGLISH.

This is a zombie game where you have to survive against hordes of zombies and defend your base.
If the base or the player are eliminated the game is over.

The player moves with W(up), S(down), A(left), D(right).

You can aim at the zombies with the mouse, and shoot with the "space" bar.

You can change the actual weapon by pressing "q" and reload with "r".


#####NEW#####NEW#####NEW#####NEW#####NEW#####NEW#####NEW#####NEW#####NEW#####

# Fixed a bug when the player change the actual weapon for the minigun and it just dont shoot.
# Speed up in the cleaning method of the blood due to performance issues.

#####OLD#####OLD#####OLD#####OLD#####OLD#####OLD#####OLD#####OLD#####OLD#####

# Added a menu to the game.
# Added a gameover screen.
# Many sounds added.
# Some basic animations in the menu.
# Better graphics.
# Added blood spotts.
# Added weapon cases.
# Added 3 diferent enemies.
# Added 3 diferent weapons; a pistol with unlimited ammo, a shotgun for close attacks
and a minigun for rapid fire.
# Added the labels with information about the current ammo of the weapons.
# Added a reload method for the weapon.
# Now the zombies will be walking towards the base, but if the zombie is close to you he will follow you.
# Implemented labels that shows the current health of the player, the state of the base and the number
of zombies killed.
# Now you can shoot at the zombies.
# Added Zombie class that appear randomly in the edges of the scenario.
# The zombies will follow the player to eat it?s brain.
# Added a mouse reticle to aim at the zombies.
# Added the rotation of the player to where the mouse is located.

7802 views / 18 in the last 7 days

4 votes | 0 in the last 7 days

Tags: mouse with-source uaslp zombie beta

open in greenfoot
Your browser does not support the canvas tag.
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

See all comments

Want to leave a comment? You must first log in.

Who likes this?

ninjapuffin julius Amil m3mor3x