Processing can't find a type or file named 'filename', when it is a file I have created, and is right in the sketch folder?
in
Programming Questions
•
4 months ago
Okay, so I am creating a sketch in processing, and everything was working perfectly fine until just now. I have created a class named World, tha
t loads all of the objects in that screen of the world. It had been working fine until now, but when I changed some things that don't even pertain to the World file I get "Cannot find a class or type named 'World""... anybody know what's up? I tried the age old theory of close it and open it again, but unfortunately it doesn't work. I really have no clue what's up here... My code important to what's happening is below. Help would be greatly appreciated!
Main sketch file:
- Player player;
- Load load;
- Menu menu;
- World world;
- public void setup() {
- player = new Player();
- load = new Load();
- menu = new Menu();
- world = new World();
- size(640, 480);
- }
- public class World{
- int RoomID = 0, BlocksInRoom;
- ArrayList Blocks = new ArrayList();
- public void addBlocksToRoom() {
- BlocksInRoom = Blocks.size();
- switch(RoomID) {
- case 0:
- Blocks.add(new Block(32, 32, 32, 32));
- Blocks.add(new Block(64, 64, 32, 32));
- break;
- default:
- println("Something funny happened!");
- break;
- }
- }
- }
- }
1