Listing all results (108)

Java programming with Greenfoot: classes and objects

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: finally some code

In this video tutorial students begin programming in Greenfoot Java.  The concepts of inheritance and parameters are explained and demonstrated and syntax details are introduced, including the use of brackets.  This is demonstrated by the creation of a simple game using turtles moving around the screen.

...

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

Pages

View all publishers