To embed this scenario in a web page, copy the following HTML code:
A new version of this scenario was uploaded on Wed Oct 03 12:51:46 UTC 2012
If you could download this and tell me what im doing wrong it would be great. Thanks.
The first thing I noticed was that you do not have any Player class object added to the world.
Then, I saw some unwanted characters in your code
- remove the semi-colon ( ; ) in the Gameball class at the end of 'getGold()' method
- remove one pair of brackets ( } { ) in the Player class between the 'if's in the 'act' method
Finally, in that second 'if' block, you need to switch the calls to 'setPlayer1()' and 'setPlayer2()'.
That should fix what you have so far.
2012/10/3
2012/10/3