Joy of code: Java programming with Greenfoot

Greenfoot is a programming environment for the coding language Java.  It has been designed primarily to assist game design; featuring an introduction to object oriented programming it enables students to create 2D games with sound relatively easily whilst introducing key programming concepts.

In this series of thirty three video tutorials, Michael Kölling from King’s College, London, guides students through the process of installation, creation and improvement, using a range of games as exemplars.

 

Resources

Java programming with Greenfoot: object interaction (first encounter)

In this video tutorial students are shown how to add more complexity to their game by adding more interacting elements.  How objects interact is explored along with assigning a value to a variable and explaining the difference between fixed and local variables.  External method calls are also explored.

...

Java programming with Greenfoot: adding a score counter

In this video tutorial students are shown how to add a score counter to their game; the turtle will gain points for eating lettuces etc.  This is achieved using a pre-made counter class.  Subclasses are revised and changing images is also explained.  The tutorial explains constructors and how these are special...

Java programming with Greenfoot: bouncy coloured balls with mouse input

In this short video tutorial students are shown how to implement mouse controls in to their game and how to use the world act method to make their world react to something, such as mouse or key instructions.

More resources can be found here

Java programming with Greenfoot: class methods versus instance methods

This video tutorial explains clearly the differences and uses of internal method calls (a method called from the same class or inherited from the superclass), external method calls (when a method is called from an external source, such as a different class, mouse or keys) and static or instance methods (where...

Pages

Published by

Actions

Share this resource