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

Comments for Guns vs Zombies

Return to Guns vs Zombies

LildarkoneLildarkone

2011/6/18

One thing.... Could you please make it so you don't crap out ants?
Very nice, but I fell like Trolled by Zombies XD (maybe too hard?)
raveronaraverona

2011/6/18

Niiiiiiiiice...! I like when you crap ants!
wagnerfwagnerf

2011/6/18

As this is the first version, the ant is a Warning to the existence of possible BUGS in the game.. hahahah
DuilioDuilio

2011/6/20

hahah, so nice.... I won it^^
EmiSanadaEmiSanada

2011/6/21

Nice game! I'll be waiting for the full version XD
VitorGuitarVitorGuitar

2011/7/2

No more crapping ants! New version includes: guns!! Zombies! soundtrack! BOOM! sounds! awesomeness! (yes, I helped make this game too!)
A new version of this scenario was uploaded on Sat Jul 02 22:01:25 UTC 2011 -Survival mode added -all levels added -more weapons added -help in-game -engine improvements -added sound effects -added menu
A new version of this scenario was uploaded on Sat Jul 02 22:12:05 UTC 2011 -Survival mode added -all levels added -more weapons added -help in-game -engine improvements -added sound effects -added menu
A new version of this scenario was uploaded on Sat Jul 02 22:35:50 UTC 2011 No more bugs in level 6
A new version of this scenario was uploaded on Mon Jul 04 00:00:42 UTC 2011 -Survival mode with more zombies -Player and zombies now appear over the status bar
AndrePestAndrePest

2011/7/4

I loved the survival, after all, I resisted for 5 seconds...Xd
wagnerfwagnerf

2011/7/4

Enjoy the Updated version. Suggestions, bugs... Feel free to tell us by comment xD
I like guns!! I like killing zombies!! Therefore I like this game!!
A new version of this scenario was uploaded on Tue Jul 05 17:21:28 UTC 2011 -Zombie Blood!!! -Reload Sound taking the Bullets -Gas Gallon image changed
A new version of this scenario was uploaded on Tue Jul 05 18:38:36 UTC 2011 -Mouse shooting solved -Zombie Blood now appears under all objects -Reload sound for the guns
A new version of this scenario was uploaded on Wed Jul 06 20:13:47 UTC 2011 -Air plane's bug solved
A new version of this scenario was uploaded on Fri Jul 08 21:11:06 UTC 2011 -Now you can pause the songs by pressing "p" key.
VictorDSVictorDS

2011/7/9

Wooohooo!!! 47000 on survival! xD Very nice game!
wagnerfwagnerf

2011/7/9

Wow, you are better than me!! hahahaha I'm going to change the Zombie Rate in the survival, because its not so dynamic yet. I'm glad you have liked it, thanks!! xD
A new version of this scenario was uploaded on Sat Jul 09 19:16:03 UTC 2011 Survival mode now has Health items and Zombie Rate updating. xD
A new version of this scenario was uploaded on Tue Jul 12 15:02:31 UTC 2011 -Level 6 changed (harder) !!
BCCBCC

2011/9/10

In level 2 the zombies can just walk through the wall
BCCBCC

2011/9/10

Also, you can walk through the walls and can't bord the plane
A new version of this scenario was uploaded on Sat Nov 05 15:23:10 UTC 2011 Bugs fixed
wagnerfwagnerf

2011/11/5

Bugs fixed!! Thanks for your comment, BCC.
darkmist255darkmist255

2011/11/5

What code (If you're willing to share) did you use to make it so the zombies move towards you? I've tried a few ways to make them calculate the angle between you and them, but can't seem to get it right.
wagnerfwagnerf

2011/11/6

In this game: -The zombie class has access to the position x and y of the player. -So I did this in the act method of Zombie class: if(manIsLive) move(); In the move() method, we have: deltaX=XPlayer-getX(); deltaY=YPlayer-getY(); if(deltaY<0) moveY=-1; else moveY=1; if(deltaX==0) moveX=0; else { beta = (int) (Math.toDegrees(Math.atan(deltaY/deltaX))); if(deltaX<0) { moveX=-1; setRotation(beta+180); } else { moveX=1; setRotation(beta); } } setLocation(getX()+moveX , getY()+moveY); Enjoy and good luck, thanks for playing! xD
newacctnewacct

2011/12/4

@wagnerf: you can write that as: setRotation(Math.toDegrees(Math.atan2(deltaY, deltaX)))
wagnerfwagnerf

2011/12/4

Actually I should write: beta = (int) (0.5 + (Math.toDegr.... ) Because it would decrease the chance of bad rounding. But anyway, it's always good to know other ways of doing the same thing, thanks, @newacct !
programmer22programmer22

2012/1/2

7740 score on survival =/
programmer22programmer22

2012/1/2

8720
parlenicparlenic

2012/3/28

Are all the guns the same? One bullet with the same noise? Can't seem to change the gun unless they are all the same sounding with the same bullet.
09blackn09blackn

2012/8/8

hey, just wondering what code you used to change the image from a zombie to blood Thanks
tylerstylers

2012/8/8

probably setImage(...) method.
gusbus123gusbus123

2012/8/8

you should have a limiter for the amount of zombies so the game doesnt become impossible.
gusbus123gusbus123

2012/8/8

@09blackn from the top of my head im thinking the code would be somewhat like this: [code]private boolean dead; // default is false public void act() { checkDeath(); if(!dead) { //other codes like movement and that. } } private void checkDeath() { if(!dead) { if(getOneIntersectingObject(Bullet.class)) //returns true if the zombie is hit by a bullet. { dead=true; Greenfoot.setImage("Blood.png"); } } }[/code] the checkDeath() could also just be part of the act, not a seperate "void".
gusbus123gusbus123

2012/8/8

@wagnerf have you tried using the "turnTowards()" code? it should be alot simpler.
lemur07lemur07

2012/8/9

On survival, I got a score of 360,330 before I got bored and gave up. I had 730 health when I decided to give up.
wagnerfwagnerf

2012/8/9

hey @gusbus123, thanks for your comments xD For the blood, i created a class named "ZombieBlood" that just puts an image in the position that the zombie died. I create 150 objects of blood every level. When i don't have 150 bloods yet, i create; when i do have, i only call setPosition of the first ones. At the moment the bullet hits the zombie, both are removed. When i made this game, i had a version before "Greenfoot 2.1.0 (8. June 2011)", so the turn methods in Actor weren't built yet. (http://www.greenfoot.org/version_history). That's why i didn't use the turnTowards(). This were a one month project of Computer Science 101. Also, i didn't know anything about programming before. Sorry if my English is not great, and I hope you understand I was "a pretty bad programmer", because I was just learning at that time :D Thank you all for the feedback! []'s
09blackn09blackn

2012/8/15

How did you stop the actor from traveling through the wall ? Thanks
09blackn09blackn

2012/8/15

How did you stop the actor from traveling through the wall ? Thanks
wagnerfwagnerf

2012/8/15

@09blackn What I did it's not the best thing, but it was: I call the method setPosition of the Actors if: the booleans are like: trying to move up and wallTop == false, trying to move down and wallBottom == false, trying to move left and wallLeft == false, trying to move right and wallRight== false. To set this booleans, i used the method getOneObjectAtOffset(actor.getX() + dx, actor.getY() + dy, Wall.class), where dx and dy depend on the position of the wall you want to compare. That's the idea of how I did when I made this game! :)
David123David123

2012/8/17

how did you stop the sound in menu then change to the game sound