hey guys i want a timer/reversed count down on the top right corner of the world which if reaches zero the game should stop and show game over
code--
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
import java.awt.Font;
/**
* Write a description of class MeteoritePopOut here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MeteoritePopOut extends World
{
Counter counter = new Counter();
private int timer = 360;
public void act()
{
if (timer>3600)
{
timer--;
if(timer == 0) Greenfoot.stop();
}
}
}
