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

Report as inappropriate.

ajrespall
ajrespall presents ...

2013/3/1

Blast that pest!

press space to start. :)

4335 views / 23 in the last 7 days

11 votes | 0 in the last 7 days

Tags: game demo with-source pest

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Sat Mar 02 02:43:00 UTC 2013
A new version of this scenario was uploaded on Sat Mar 02 02:45:15 UTC 2013
ajrespallajrespall

2013/3/2

updated with the source code,, please help me with the counter...
danpostdanpost

2013/3/2

To fix the ball out error: in the 'act' method of the Ball class, switch the order of the 'checkOut' and 'checkFly' calls. Also, in the 'checkOut' method, remove the 'gameOver' call. Will reply about counter shortly.
danpostdanpost

2013/3/2

In the ball class, in the 'checkFly' method, add the following line inside the if(fly != null) block: ((Counter)world.getObjects(Counter.class).get(0)).add(5);
danpostdanpost

2013/3/2

You may want to add a counter in your world class to track the number of new balls created and if it reaches a certain value, then 'gameOver'.
she53079she53079

2013/3/5

Real nice! instead of the bricks the fly randomly moving around. And, revisit MIK's JOC 16 for the counter.
JetLennitJetLennit

2013/5/2

There are a few bugs (pun fully intended) =)
JetLennitJetLennit

2013/5/2

But it is a very nice game
ajrespallajrespall

2013/5/3

tnx. :)

See all comments

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

Who likes this?

JetLennit dianefayeparajes SDC potatodemon ryanp.parsu joshy18lil MatheMagician Princess LolaLilia senseye25 welldawn