Listing all results (228)

Java programming with Greenfoot: keeping your code clean

In this video tutorial students are guided through using space and indentation to make their Java programming easier to read.  How to add comments is also covered.  This is useful as the program gets longer it gets harder to find specific parts within it – using comments allows parts to be found quicker.  How to...

Java programming with Greenfoot: snakes on a plane

In this video tutorial students are shown how to add another class in to their game – snakes.  How to effectively copy and paste code from one class to another, and keep it tidy using comments and indentation, is also shown.

More resources can be found here

Java programming with Greenfoot: play the game (keyboard control)

By this stage in the series of video tutorials, students have created a game in which a turtle eats lettuces whilst being chased by snakes.  In this tutorial, students are shown how to implement keyboard controls so that they can control the turtle.  This is achieved using the Greenfoot application processes...

Java programming with Greenfoot: play the game (teacher commentary)

By this stage in the series of video tutorials, students have created a game in which a turtle eats lettuces whilst being chased by snakes.  In this tutorial, students are shown how to implement keyboard controls so that they can control the turtle.  This is achieved using the Greenfoot application processes...

Java programming with Greenfoot: fun with sound

In this video tutorial students are guided through the process of adding sound to their game.  They are shown how to access pre-existing sound libraries and also how to create, record and input their own sounds to bring their game to life.

More resources can be found here

Java programming with Greenfoot: the structure of a class

In this video tutorial students are asked to pause their creative endeavours and check they understand the structure of the code they have created so far in their turtle game.  It involves a detailed explanation of class structure, headers, the value of commenting and how to use brackets.

More resources can...

Java programming with Greenfoot: a first look at variables

In this video tutorial students are introduced to the use of variables, specifically how to add a counter to their game to show how many lettuces their turtle has eaten.  This introduces how to end the game, the ++ statement and the concept of ‘fields’ – a variable within a class.

More resources can be...

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.

More...

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

View all publishers