Consequences Scenario

February 15, 2009

In order to be a better resource for high school kids wanting to learn to program, I’m working my way through the BlueJ book, Objects First.  I picked it up yesterday after ignoring it for a while, and some of the exercises in it prompted me to go back to my scenario in Greenfoot and try to make a bit more progress with it.  I did so and here is the result.
Your browser is ignoring the <APPLET> tag!


Made with Greenfoot –
www.greenfoot.org

My next steps should be:

  • Clean up the code – it is a mess because I keep coding and then commenting out new options
  • Do a different scenario to illustrate how exactly the various getObject… methods in the greenfoot.Actor class work. There may be such a scenario already, and the documentation for the methods is very good, but it will be a fun scenario for me to implement, and I think interesting to see how the different methods work for different objects with different images, since some of the getObject… variations take into account the “graphical extent” of objects.
  • Post a simple version on the gallery.
  • Implement controls so that the user can control variables like: dirByColor and wallBounce, both true in the version posted above.
  • Share/Bookmark

Leave a Reply