This site requires JavaScript, please enable it in your browser!
Greenfoot back
LakeOtis
LakeOtis wrote ...

2017/3/10

World class not compiling

LakeOtis LakeOtis

2017/3/10

#
This is the code- I didn't change anything except the size of the world, is something wrong with my Greenfoot?
import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class myWorld here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class myWorld extends World
{

    /**
     * Constructor for objects of class myWorld.
     * 
     */
    public myWorld()
    {    
        // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
        super(800, 800, 1); 
    }
}
Edit: Nevermind, I just had to restart Greenfoot.
You need to login to post a reply.