want a 60 seconds timer. i want it to show how much time i have left plz help
private int timer = 0; /** * Constructor for objects of class ShooterWorld. * */ public ShooterWorld() { super(600, 400, 1); addObject(new Launcher(),300,375); addObject (new Plane(),100,30); prepare(); } /** * Prepare the world for the start of the program. * That is: create the initial objects and add them to the world. */ private void prepare() { } public void timer() { timer--; showtimer(); if (timer>0) { timer--; if(timer == 0) Greenfoot.stop(); } } public void showtimer() { showText("Time:" + timer, 625, 30); } }