I've been searching the website and found a lot of scenarios about a endless world, but when i download it and try to open it, All the classes and worlds come up as an error..
I'm trying to make my world move down endlessly so the car can look like its moving up If you do provide a code, please tell me how to integrate it into my code.
Roaddd is the name of my background
NSX10 is the name of my car
Thank you
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Roadd here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Roadd extends World
{
/**
* Constructor for objects of class Roaddd.
*
*/
public Roadd()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 800, 1);
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()
{
NSX10 nsx10 = new NSX10();
addObject(nsx10,247,573);
removeObject(nsx10);
Roaddd roaddd = new Roaddd();
addObject(roaddd,232,216);
NSX10 nsx102 = new NSX10();
addObject(nsx102,256,705);
removeObject(roaddd);
}
}
