Listing all results (46)

Java programming with Greenfoot: bouncy coloured balls

In this revision tutorial students create a new game that features bouncing balls.  They revisit class and field structures, modifying images and using constructors to add new balls as well as exploring using methods to change parameters.

More resources can be found here



Divide and conquer

This activity provides a mathematical problem that is solved in a simple way. It relates to the way algorithms are used in search engines and links to problem solving in maths. The context is that of Santa trying to find his socks in one of 1024 boxes, which a...

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: refactoring for good style (teacher commentary)

This video explains good coding behaviour.  This includes an emphasis on refactoring (changing code to make its structure better so that it can later be easily changed or understood) and cohesion (ensuring that each method does only one thing).  It also explains that private methods will only apply to objects in...

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: classes and objects (teacher commentary)

The fundamental concepts of object oriented programming, classes and objects, are explained to students in this video tutorial.  The correct terminology is also introduced, including referring to ‘instructions’ as ‘methods’.  Students will be able to create multiple objects within a class using the examples...

Java programming with Greenfoot: installing Greenfoot

In this video tutorial students are guided through the process of installing Java and the Greenfoot environment on a range of operating systems.  Common installation problems are also addressed.

More resources can be found here

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: 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: 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...


View all publishers