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: return of the object interaction

This video tutorial presents an alternative approach to programming objects to interact, specifically a different structure for making the ball and counter objects cooperate in the breakout game.  The concept of ‘coupling’ is introduced – dependency/links between objects.  ‘Casting’ is also explained as a way of...

Java programming with Greenfoot: viewer questions (timers)

This video tutorial considers how to arrange for something to happen after a specific time delay.  It covers the difference between real time and game time; the latter depends upon the program’s frame rate, which can be quickly altered by the speed setting within the game.  Expressing changes in real time is...

Java programming with Greenfoot: more loopiness

In this video tutorial students are guided through programming a nested loop to create multiple rows of blocks within their breakout game.  Different ways of achieving this are assessed and implemented.

More resources can be found here

Java programming with Greenfoot: pretty pictures with while loops

In this video tutorial students are shown how to add a patterned background to their game.   This appears as randomly appearing circles of different diameters and colours.   This is achieved using a loop.  A loop counter is added to limit the number of circles that are added.  There is also a useful discussion...

Pages

Published by

Actions

Share this resource