Can't get this code to work in JS even though in works in java mode
in
Processing with Other Languages
•
9 months ago
I'm coding a simple pong game in Processing, I exported it for you
here.
The game works well but as you can see not in JS where I get this weird message on the js console of Firefox and Chrome telling me it's processing.js fault (I don't believe it is!).
I first thought it was because of the java library (java.awt.event) I imported to get the mouse wheel events so I commented that part but it doesn't work either.
I should mention that I'm not a coder at all but that should become pretty obvious once you take a look at this :/
I looked at this page for help but I don't think the mistake I made is in here, thanks for your ideas and answers.
The game works well but as you can see not in JS where I get this weird message on the js console of Firefox and Chrome telling me it's processing.js fault (I don't believe it is!).
I first thought it was because of the java library (java.awt.event) I imported to get the mouse wheel events so I commented that part but it doesn't work either.
I should mention that I'm not a coder at all but that should become pretty obvious once you take a look at this :/
I looked at this page for help but I don't think the mistake I made is in here, thanks for your ideas and answers.
1