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 achieved by creating the score as an image that constantly updates itself.

mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:
"Times New Roman";color:#1F497D;mso-ansi-language:EN-GB;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">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.

Published by

Actions

Share this resource

Collections

This resource is part of Joy of code: Java programming with Greenfoot

Comments