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.



Java programming with Greenfoot: animating the image

In this video tutorial students increase the complexity of their bouncing ball game.  They are introduced to dynamically changing images by increasing their bouncing ball’s transparency as the game progresses.  This is achieved by adding ‘else’ to an ‘if’ statement.  A special keyword, ‘this’, is introduced that...

Java programming with Greenfoot: smoke and mirrors (visual effects)

In this video tutorial students are shown how to add a visual effect to the animation in their bouncing ball game.  Balls will appear to leave a diminishing smoke trail behind them as they move.  This is achieved by leaving an object in the path the ball has followed that shrinks over time.  This is a simple but...

Java programming with Greenfoot: how to display text

In this video tutorial students are shown how to add text in to their games.  This may be static text that does not change, such as instructions.  It may be dynamic text that changes as the program runs; in this example it is a score counter that increases in value as the game progresses.  This latter example is...

Java programming with Greenfoot: object interaction (a second look)

This video tutorial explores an essential element of object oriented programming – getting objects to interact.  This is modelled by integrating a counter object into a scenario – in this case, a simple paddle and ball breakout game.  The tutorial uses a previously created score counter and shows a method to...


Published by


Share this resource