We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I made a game in processing and it worked just fine. I tried to upload it to OpenProcessing and then it sent me this error when I tried to run the game: "Unexpected reserved word" So I tried to add the pieces of code one by one to see which one causes this error and then I reached this enum:
public enum TileType {
EMPTY,
APPLE,
SNAKE;
}
I do not understand what is wrong with it, it works just fine on my computer. I can replace the enums with strings or something else but I prefer to not do that because: a. Enums are more efficient b. I will need to change many things and I'm lazy
Answers
enum
was added very recently in Processing 3. 8-Xenum
to JS unfortunately. :(interface
doesn't seem to work either. :-&static abstract class
then: :ar!