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

Report as inappropriate.

koenschoen
koenschoen presents ...

2012/10/27

BreakingDead

BreakingDead is a mixup of two er popular television serie called "Breaking Bad" and "the Walking Dead"
in which you play as "walter white" a prize winning chemist who's stuck in the zombie apocalypse. he needs to find chemical elements to make an antie-dote, and then get the hell out!

--------------------

controls:
w,a,s,d - move
g,h - turn
space - shoot
q - shotgun

--------------------
only when you have collected all the elements you should go to the exit.
--------------------
this is my first game, all art work by me. thanks to 18km, and my teacher.

note: when you pull out your shotgun you can't move, so be carefull.

2935 views / 829 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game zombie the bad walking breaking dead thewalkingdead breakingbad breakingdead

open in greenfoot
Your browser does not support the canvas tag.
BradHBradH

2012/10/27

Pretty cool
koenschoenkoenschoen

2012/10/28

does anybody know how to make the bullets disappear when hitting a zombie since getWorld. removeObject () doesn't work?
danpostdanpost

2012/10/28

'getWorld().removeObject()' will work if you do it before 'getWorld().removeObject(this)'.
koenschoenkoenschoen

2012/10/28

@danpost i can't follow you, the code i tried was if canSee(survivor.class){ getWorld().removeObject(this)} canSee being the void that checks if an object is in the same cell as this object, however if atWorldEdge () {getWorld().removeObject(this)} did work?
danpostdanpost

2012/10/29

canSee better not be a void; it must return a boolean; and if it does, the return must be true or false. Either you have your terminology wrong or your code is wrong. That is, either you are not correct in calling the canSee method a void when, in fact, it is a boolean method; OR, you coded your canSee method as a void when it should be a boolean method. If you show the code you have for the act method, I believe I could find what is amiss (that is if your canSee method is coded properly).
danpostdanpost

2012/10/29

I might have to see what variables you have declared for the class, also.
danpostdanpost

2012/10/29

I saw that the code was available for download. In the act method of the Bullet class, do the following // before the first 'if', add boolean removeMe = false; // in each Zombie 'if' block, add removeMe = true; // change the last 'if' to if (removeMe || atWorldEdge())
koenschoenkoenschoen

2012/10/29

thank you very much i'll give it a try

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

Who likes this?

BradH