I've created a dropping objects game for a final due tomorrow in which the player must capture falling objects that will either increase or lower its speed. There are two categories to the objects: "good" and "bad". If the player misses more than three "good" objects, then the game is over. If the player captures any "bad" food, it will decrease its speed, but capturing "good" food will revive it.
I finished all of my coding, but when I run it, I get one error on top of another (next time, I know to definitely work in pieces and continuously run to make sure it all works!). The one I am currently stuck on is "Cannot find a class or type named 'Player'", even though I do. I even tried renaming it, and checking in the Sketch folder if my class file is there, and it still doesn't work.
One thing I'm also skeptical about working but Processing didn't seem to have any problems with is that for every second, a food object drops at random, but each type of food has a certain probability. I executed this by setting a one second timer, so each time it is finished, food would drop.
Anyways, here is my code, and if you notice any other errors that may pop up from it, that'd be awesome if I could get some insight on it! Thank you so much for everyone's help!