I'm having trouble with my game as every time I type this code in just after the bracket it shows red.
can someone help me, please
I have tried without the bracket and with a semicolon and nothing is seem to be working
import greenfoot.*;
import greenfoot.Color;
public class Lazer extends PacMan
{
public void addedToWorld(WorldSky)
{
GreenfootImage image=new GreenfootImage(20,10);
image.setColor(Color.ORANGE);
image.drawLine(0,5,image.getWidth()-1,5);
setImage(image);
}
}
