11-10-2022, 11:33 AM
(11-10-2022, 12:35 AM)dbox Wrote:(11-09-2022, 11:25 AM)Coolman Wrote: hello @dbox, you have a very high level of competence. why not consider producing a code editor with javascript executable generation encapsulated in an independent web browser totally multi-platform while taking into account the syntax of the basic language. this kind of project will surely have a great success and the support of many opensource developers and it will solve the problem of adapting programs to many systems or hardware architectures. javascript is executable everywhere...
Hey @Coolman, thanks for the kind words. If I understand what you are asking, this is exactly why I started this project. In fact, what is QBJS today started from work I was doing on the game engine project GX. One thing that I have always loved about QB64 is its multi-platform nature. This is very nice for building games for a larger audience. So, I thought wouldn't it be cool if you could convert the game to HTML/javascript and share it online on sites like itch.io. The result was a command line tool (qb2js) that could convert the QB code to Javascript. The GX game examples on itch.io were all built with this method: coded entirely in QB64 and then converted to HTML/JS.
- https://boxgm.itch.io/the-legend-of-gx
- https://boxgm.itch.io/sleighless
- https://boxgm.itch.io/enemy-space
That utility is still available in the QBJS and GX projects and could potentially be used by build tools like vscode to "Compile for Web". This feature is also available today in the QBJS IDE. Once your program is complete you can create a stand-alone web application using the Export feature.
You can do this by clicking the < Share > Button. This will display a pop-up dialog with the various share options. If you change "Launch Mode" to "Play" or "Auto" it will display an < Export > button. Clicking this will package up the "compiled" javascript version of your program along with the necessary js, html, and css dependencies into a single zip that is ready to upload to itch.io (or your site of choice), or unzip and run locally.
thank you for these precisions @dbox. i was thinking more of a project of this type:
https://www.aoz.studio/
AOZ language is based on AMOS Basic written in 1989, cross-platform works on windows macos and linux. the programs created are converted to JavaScript and work on all web browsers of any compatible machine PC MAC smartphones or as a native executable on Windows, MacOS, Linux, Android and iOS, on any computer, smartphones. this is in my opinion the most interesting function.