Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - en / Naver take a summer off from coding...
« Last post by bigsofty on Today at 01:57 AM »
Took a break from coding over the summer. Now I  cant remember a thing and the fear of code is growing...   :noggin:

Note to self: DOCUMENT MORE!   :'(
2
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by Qedo on Yesterday at 05:19 PM »
it seems so, see https://www.glbasic.com/forum/index.php?topic=6569.msg52954#msg52954
I tried to compile Opengl.bas and compile it though the result does not seem correct to me
My Python version is 3.8.3
3
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by dreamerman on 2022-Oct-02 »
I completely forgot about Python requirement, but wasn't it included with older (v14 / v15) instllation of html5 target, hm not sure about that. Any specific Python version is required, like 2.x or newer 3.x?
Good job for testing this, few new question comes to my mind, for example what about simple OpenGL inline like glTranslate etc, will something like that work in WebGL?
It would be great to see additional platforms as such DLC, Linux should be first.
4
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by erico on 2022-Sep-27 »
Thanks for the heads up, I will sure be trying web compile this year and this will help.
5
Inline / 3rd party / Re: Box2d - 2D physics
« Last post by bigsofty on 2022-Sep-26 »
Anyone still using this in the wild, how stable is it for deployment?
6
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by loftcat on 2022-Sep-26 »
First cut of some steps for another GLBASIC-HTML5 newbie like myself...  what do you think? Anything to add or amend ?

GLBASIC v16 (Steam edition) - Getting started with the HTML Compiler (Windows 10)

Pre-requisites: GLBASIC v16 Steam Edition

1. Purchase the HTML Compiler from Steam as GLBASIC DLC. Once purchased, the HTML Compiler should automatically install via Steam.
There isn't an obvious change to GLBASIC when you launch it, but under Project->Options on the menu, HTML5 and HTML5-webGL options should be available.

2. Install Python. This is not mandatory for the compiler to work, but is needed if you want to test your compiled html5 program in the simplest way. You can install the latest version of Python from the Microsoft App Store.

3. Create a new project with the following code:

SETLOOPSUB "MainLoop1"
SUB MainLoop1:
   PRINT "Hello World",10,10
   SHOWSCREEN
ENDSUB

The key thing is a SETLOOPSUB should be used for main loops when compiling to HTML5.

4. On the menu go to Project->Options and set Platform Configuration to 'HTML5-WebGL' and click OK.

5. Go to Compile->Build Multiplatform. Click on HTML5-WebGL to compile your project.

6. Locate your project folder in your GLBasic home folder. Navigate to the ..\<projectName>.app sub-folder of your project. If there isn't a Media folder, create one. Inside your Media folder, if you do not have any files, create a simple dummy text file. It doesn't matter what it is called, as long as a file exists here.

7. Go to Compile->Build Multiplatform. Click on HTML5-WebGL to re-compile your project

8. Navigate to the ..\distribute\HTML5 folder and you should see several files of these types: .data, .html, .js, .wasm and .bat. Providing you have installed Python in step 2, you should be able to click on the run_local_test.bat file to run your project in a browser using a local web server.
7
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by Qedo on 2022-Sep-24 »
we never think about simple things :D
8
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by loftcat on 2022-Sep-24 »
about the local web server not working but are you sure you have python installed?
To check this, open a cmd and run python.exe

Aha! Installed Python and it works  :booze:
So simple when you know how. I'm going to do a little getting started guide for sure!
9
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by Qedo on 2022-Sep-23 »
about the local web server not working but are you sure you have python installed?
To check this, open a cmd and run python.exe
10
GLBasic - en / Re: Steam HTML5 Compiler
« Last post by loftcat on 2022-Sep-23 »
Quote
Yet Gernot in HTLM5 the mouse test:

SETLOOPSUB "MainLoop1"
SUB MainLoop1:
    PRINT "X:" + MOUSEAXIS (0), 0, 0
    PRINT "Y:" + MOUSEAXIS (1), 0, 20
    PRINT "Z:" + MOUSEAXIS (2), 0, 40
    PRINT "A:" + MOUSEAXIS (3), 0, 60
    PRINT "B:" + MOUSEAXIS (4), 0, 80
    PRINT "C:" + MOUSEAXIS (5), 0.100
    SHOWSCREEN
ENDSUB

only the left mouse button works.
Any idea?

When testing today I noticed if I put a mousewait into my MainLoop1 the HTML5 compiled but failed to run. But I could call out to a procedure to do it and it works.
Pages: [1] 2 3 ... 10