Listing all results (87)

Java programming with Greenfoot: adding random behaviour

This video tutorial introduces students to the Greenfoot API (application processing interface) – a collection of shortcut commands built in to the Greenfoot environment.  Students are guided through using the API to make their turtle move in a random manner by generating random numbers and inserting them into an...

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

Java programming with Greenfoot: object interaction (a second look)

This video tutorial explores an essential element of object oriented programming – getting objects to interact.  This is modelled by integrating a counter object into a scenario – in this case, a simple paddle and ball breakout game.  The tutorial uses a previously created score counter and shows a method to...

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

Pages

View all publishers