Actually, I have had very little formal education in programming; never worked at it professionally. I am pretty much self-taught. I started with GW-Basic and Q-Basic. Had a general course in computer concepts which barely touched on most languages at the time (Cobol, Fortran, Basic, RPG). Dabbled in Assembly on my own. Learned VisualBasic, again, by myself. And for the past couple of years, have been working with Java and Greenfoot (again, on my own). I think that working with VisualBasic prepared me for Java in a way, being it is Object Oriented Programming also.
For you guys, the tutorials and videos in Greenfoot are good for learning to work within Greenfoot; however, the Java trail, Learning the Java Language would be where to start as far as programming at all in Java. You can find it at: http://docs.oracle.com/javase/tutorial/java/index.html
@diane, first work on fixing the glitches (those things that happen that you do not want to happen). Getting the piggy to go through the tunnel; not having the piggy hang up on some of the turns; not having the piggy pick miss the dots that are passed over; giving the ghosts better movement; things like that.
@kawrl, it would be better for you to create your own code, and if you have problems, start a new discussion explaining what help you need. You will not learn anything by copying code.
I took a look at the code and see you already have methods to add the eggs. Still, you should be able to work it from what I gave above.
Couple things about code: Greenfoot.getRandomNumber(2) will always return a value less than 2 (or any number greater than 2); so the checks in your egg spawning methods are always true.
NewGame should probably not extend the Animal class and should remove itself when space is pressed (code to remove it should not be in Chicken class).
Add the counter object from the world constructor. In the Chicken class, when eating an egg (or Sugok), use something like the following to increase the counter:
((Counter2)getWorld().getObjects(Counter2.class).get(0)).bumpCount(5);
2013/3/19
PiggyMan=)
2013/3/18
menu class
2013/3/18
PiggyMan=)
2013/3/18
menu class
2013/3/18
menu class
2013/3/18
Got Roadkill
2013/3/18
The Maze Factory
2013/3/18
The Maze Factory
2013/3/17
Catch That Egg (DEMO)