passing a program from java to javascript
in
Processing with Other Languages
•
1 month ago
Hi
I wrote an entire game in processing (java), and now I want to put it online as a javascript game. If I just select 'javascript mode', it will partially run (meaning the background displays but you cannot actually play), and the firefox console gives me non-relevant error messages.
Is there a standard list of things to do when passing from java to javascript? Or at least a good way to debug it? (Firefox is useless).
My game works perfectly well in Java, but I think i did some ugly programming, such as give the same name to a variable and a function (which is fine in processing), and I did not write at all the words local, static, public, etc... cause I don't know what they're for...
(And I'm not talking about the Android mode...)
Anyway thank you for your help
I wrote an entire game in processing (java), and now I want to put it online as a javascript game. If I just select 'javascript mode', it will partially run (meaning the background displays but you cannot actually play), and the firefox console gives me non-relevant error messages.
Is there a standard list of things to do when passing from java to javascript? Or at least a good way to debug it? (Firefox is useless).
My game works perfectly well in Java, but I think i did some ugly programming, such as give the same name to a variable and a function (which is fine in processing), and I did not write at all the words local, static, public, etc... cause I don't know what they're for...
(And I'm not talking about the Android mode...)
Anyway thank you for your help
1