Listing all results (173)

Java programming with Greenfoot: if statements

In this video tutorial students explore method return values in more details.  True or false (Boolean) statements are used to create if statements.  In this example an object, a turtle, is programmed to interact with the edge of the world (the screen) by using an if statement.  Students are then able to make their...

Java programming with Greenfoot: lettuce is good for you (collision detection)

In this video tutorial the concept of collision detection is introduced.  This is a key aspect of many games – recognising that two objects are touching.  This is explained with the creation of a lettuce class within the game.  When the turtle touches a lettuce it appears to eat it and so it disappears.  This is...

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

Pages

View all publishers