We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, having problems converting this sketch from java into JavaScript.
Works fine when I run normally in java.
When I run in JavaScript, the colors are all messed up, supposed to be black and white but everything looks warped.
I think it may have something to do with the noise in my sketch but not sure..
I have EVERYTHING updated, browser, java, processing... not sure what to do? anyway to fix this?
Thank you.
Answers
Which sketch btW? :-/
Anyways, it indeed seems that JS's noise() implementation doesn't match Java's! @-)
There's this "Random Tiled Terrain Generator" based on noise():
http://forum.processing.org/two/discussion/5985/how-can-a-roguelike-have-so-large-maps
When run in Java Mode, a reasonable amount of brown
^
"mountain" chars show up.However, in JS Mode, it's almost inexistent! Check it out for yourself: :(|)
http://studio.processingtogether.com/sp/pad/export/ro.9Ql2E8JBC54LJ/latest
Sorry here is the code...
Daym. So noise() dosn't work in JavaScript.
there is no way around this?