any blitz to javascript translator around?
Community Forums/General Help/any blitz to javascript translator around?
| ||
did anybody ever write such a thing? i am not talking about the dx7 d3d parts etc, just the language structure, functions, arrays, types should be mainly a lot of fiddling, but petfectly doable. Taking then a blitz2D code that uses only writepixelfast will make the interface to many renderers easy, such as webgl or other things. Point is, js onthefly compilers became so freakin fast, there ain't no excuses for not using it, speedwise, and it is ultimately crossplatform. |
| ||
you can just use monkeyx and select html target. it's not exactly a language conversion coz the underlying code is kinda messy and compressed but you get to work in basic language with js output and webgl/canvas. then install minib3d for monkey if you like to add 3d |
| ||
Yes, that's true. But it depends a lot on main.js, which is a bit monolithic to me: if it does'nt work in a particular browser, then it's over my head to fix it without to break it. I often port basic to js manually, and it's a lot of repetition involved in this process. |
| ||
Only options I can think of are maybe adapting the output from Brucey's Monkey-based bcc under the bmx-ng project (not trivial!), or simply using the HTML5 target from Monkey -- most simple structural code should translate pretty easily from Blitz to Monkey... |
| ||
Ok, thank you. I may use Replace to remove the prefixes of eg. variables. |
| ||
I just compiled OpenB3D on Emscripten, so it's possible to use it to compile projects in javascript |