OT: OpenB3D+JavaScript+PWA= App for smartphones

General FreeBASIC programming questions.
Post Reply
angros47
Posts: 2321
Joined: Jun 21, 2005 19:04

OT: OpenB3D+JavaScript+PWA= App for smartphones

Post by angros47 »

This is not made in FreeBasic, but it's the port of a demo I wrote in FreeBasic years ago:

https://angros47.github.io/OpenB3D-PWA

The original is here: viewtopic.php?t=16085

Instead of compiling it with FreeBasic for Emscripten I preferred to rewrite the demo in JavaScript, because in that way I have been able to add the code for the virtual joystick (the FreeBasic version works perfectly in a web page, but is supposed to be controlled with keyboard, so it won't work on a mobile device). Emscripten is still used for the OpenB3D library (that is written in C++)

Using this tutorial: https://github.com/jamesjohnson280/hello-pwa I then managed to transform it into a Progressive Web App: it is basically a web page plus a small manifest file that states how it should be displayed when installed on a mobile device, and worker script to cache the required files to work offline. As result, the demo can be used from the web page, or installed as a native app..

In the past, the user Landeel suggested to use Cordova to transform a web page created with FreeBasic into an android app (viewtopic.php?p=212340#p212340). This solution is even better, because it creates an app that should work on both android and iphone, and it doesn't require to install any SDK.
mcombatti
Posts: 5
Joined: Dec 15, 2022 23:54
Location: Spartanburg, SC - USA
Contact:

Re: OT: OpenB3D+JavaScript+PWA= App for smartphones

Post by mcombatti »

Check out my PWA and Mobile app builder over at https://www.babelfish.studio. A new release is under way in the next week. The studio is provided with no limitations and is feature packed. Ports are available for windows, Mac Intel and arm, and Linux 32/64/ARM (RPI). Documentation is still under development, but apps are created using only html, JavaScript, and css. Perhaps it may help with your endeavors. Let me know if you have any questions. There's a built-in code assistant comparable to co-pilot.. no charge 🙌 ☺️
Post Reply