is there anyway I can look at the code for this game? I am trying to work something like this for my programming class in school and am getting really lost with trying to program it.
trying to make a score board. i used the one off the asteroids scenario and it is visible, but I need it to be black and in the top left corner like yours. I also can not figure how to make it count when I eat a worm.
In the counter, I changed the the top from private to
public static int value = 0;
public static int target = 0;
Then i made all the animals that are relevant to the counter as subclasses of the counter. I just need to use add(x) to add x to the counter. I did not understand how to do it without using subclasses.
A new version of this scenario was uploaded on Wed Dec 26 11:49:24 UTC 2012
Bonus points for bigger crab populations
Game is harder now
A new version of this scenario was uploaded on Wed Jan 09 17:19:36 UTC 2013
-Smaller screen to try making it playable for every player ;)
-There won't be an empty scoreboard anymore if you aren't logged in.
A new version of this scenario was uploaded on Wed Jan 09 17:25:32 UTC 2013
Forgot some changes which were necessary due to the screen size.
A new version of this scenario was uploaded on Wed Jan 09 17:28:23 UTC 2013
Forgot some changes which were necessary due to the screen size.
(again)
A new version of this scenario was uploaded on Wed Jan 09 18:14:41 UTC 2013
Nothing new, removed something old.
A new version of this scenario was uploaded on Wed Jan 09 19:37:55 UTC 2013
Simplified code
A new version of this scenario was uploaded on Wed Jan 09 19:46:56 UTC 2013
Ok, this should be the final version...
A new version of this scenario was uploaded on Thu Jan 10 11:13:04 UTC 2013
Of course I forgot to reset a counter...
A new version of this scenario was uploaded on Thu Jan 10 15:51:47 UTC 2013
Counter screwed up after clicking on 'reset'. Problem should be solved.
A new version of this scenario was uploaded on Sat Jan 12 10:35:15 UTC 2013
Simplified code.
A new version of this scenario was uploaded on Mon Nov 25 16:32:18 UTC 2013
Added the possibility to turn off sounds with "a". Turn them on with "s". The background music is probably still broken. In Greenfoot, I get an error message, but it does play the loop. Well, I will see what happens when it is uploaded. It is "off" at default and can be (or not...) activated with "x" and deactivated with "y". Like I said, it probably does nothing.
Some other changes:
- Worms can only be infected by worms as they are young (one minute after "birth").
- If a worm got visited by flies five times and is still green, then it is also resistant against infections.
These changes were needed to prevent players from just wait until all worms "changed their color" to get many lives.
- Changed the conditions, that the waves appear. In simple words, the first ones appear later, the later ones earlier. At about 18k+ points, it is the same again.
Deleted the easy lobster-only wave to make it a bit harder.
But it looks like it is still too easy.
Pause with "esc" besides "p" is also possibly now.
Great... I started a game a few days ago and everyday I played a bit further. I came to 66666 and 'collected' all enemies to lose lives But the storing didn't work... maybe because I wasn't online the whole time, but I don't know. Won't do it again, this game is still far too easy and not a real challenge =/
2012/12/9
2012/12/10
2012/12/12
2012/12/12
2013/1/13
2013/2/17
2014/9/13