A HTML5/WebGL Journey (various fixes included to download)

Previous topic - Next topic

Kitty Hello

if you type "await" before a function call, it should not continue until the asynchronous task is completed.

spacefractal

#46
its was inside the JavaScript code, called directly from c++ (but wasent aware of await) and there was some confusion. And its seen its take comply of frame, so waiting is actuelly not a good idea either really.

anyway its works as intended and a another function can check it under loading, so the games can show something to you without its freezing.

Instead im just added a another function that checks when the task have been done or failed, so its wait just before when the load game progress is required (and later than normal)..... and with no a black screen.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#47
bugs found so far:

ISSOUNDPLAYING() does not work.

VOLUME argument for PLAYSOUND does not work. Possible to do a workaround. Just fixed by the tool.

MOUSEWAIT does not work, but this command would newer work for this platform anyway, and hence its shoudl been depreacted. So im will not fix this command.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

hardyx

#48
Quote from: spacefractal on 2023-Mar-02Now im have 4 projects online, still missing 2:
https://spacefractal.itch.io/
I tested some games (Greedy Mouse, Spot Race, PowerUp Elevation) in Firefox version 102.13.0.esr and all works Ok. The sound is a bit loud in some, like you said. I'm impressed with your fixes to GLBasic HTML5. Greedy Mouse is art.
Thanks for the updates.  :booze:

spacefractal

#49
Greedy Mouse was not even the worst game port over to html5 and only was contains minor issues. Yes, the tile size in that game is big, hehe (200x200px).

Im could only uses one size (the game could uses 3 sizes, 50, 100 or 200px) for that port throught (the biggest one of course), due user could resize in any size.

Today im have 7 games, all using the scripts from the posttool im have done. Yes sound was quite too loud in Cave Hereos. But im do not touch the rest throught. (im not sure which games you talked about, hihi).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Qedo

Quote from: spacefractal on 2023-Feb-20to get right click working:
uses the new lib_glb_plus.js and replace the old one. that one does not needs any added changes to get it working, so you can uses MOUSESTATE with right click now (the posttool does that for you now).

SF where can I find the new lib_glb_plus?
Thanks

spacefractal

not sure what its was happens. anyway the dropbox link is just updated to included the missing file. no idea why its was happens.

Sorry for that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Qedo

Don't worry SF, perfect, tried and the right mouse works. Thank you :nw:

spacefractal

Just to been aware, you cant uses right click on a touch screen and currectly no way to detect it really. Im have tried, but its not a good one yet. So you should add a alternative to right click of course.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Dabz

I know this is an old thread, but how did you manage to get right-click to work?

Dabz

Qedo

Quote from: spacefractal on 2023-Feb-20
to get right click working:
uses the new lib_glb_plus.js and replace the old one. that one does not needs any added changes to get it working, so you can uses MOUSESTATE with right click now (the posttool does that for you now).

Dabz

#56
How the hell did I miss that!?!

To be honest, I've been bouncing searching for stuff, I probably got blind to it! :D lol

Anyway, cheers Qedo for that post, it worked a treat much appreciated, I nearly considered requesting a refund from Steam, but your post saved the day! \o/

While I'm here, if you don't mind, do you know where html5extras.gbas is located for HTMLKey() as obviously it's not defined, I've looked in the dropbox link, had a nosey, downloaded some zips, and, well, cannot find it!?!

No doubt, it'll be obvious, but, even a search of the site just reveals where I saw that post with the tools.zip dropbox link (Really, with all the suggestions etc etc, these updates should be in a sticky thread with links provided)

Dabz

Qedo

you found it in:
HTML5\tools\HtmlPost.app\Media

Dabz

Quoteyou found it in:
HTML5\tools\HtmlPost.app\Media

You sir, are a legend, thank you! :)

Dabz

spacefractal

me that fixed it. the tool should copy the file automatic as im remember. a least the newest one. Im did do linked to the tool from the first post.

Joypad is still not supported as its require to get string javascript c++ communtion working first (integers etc is).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/