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 methods used in the world class but provide no return values.
More resources can be found here
Show health and safety information
Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.
You might also like
Subject(s) | Computing, Programming and development |
---|---|
Tags | n.a |
Age | 11-14, 14-16, 16-19 |
Published | 2010 to date |
Rating | |
URL | https://www.stem.org.uk/rxfg3x |
Comments | 0 |
Published by
Actions
Share this resource
Collections
This resource is part of Joy of code: Java programming with Greenfoot
- Joy of code: Java programming with Greenfoot
- Java programming with Greenfoot: adding a score counter