GLBasic forum

Main forum => Announcements => Topic started by: spacefractal on 2023-Mar-09

Title: Space Fractal's games now got webgl ports
Post by: spacefractal on 2023-Mar-09
After im gav up Android Studio with the cat after mouse game, html5/Java have prove to been so much fun with work with.

Im got all 6 games ported and run in a browser. Not all games might works in all browsers. But here these:

https://spacefractal.itch.io/

The saving (due a async mount issue) and freeze on launch (when assert() failed) should all been fixed on all games that uses them.
Title: Re: Space Fractal's games now got webgl ports
Post by: Kitty Hello on 2023-Mar-09
All of them run nicely in my Firefox  :good:
Title: Re: Space Fractal's games now got webgl ports
Post by: bigsofty on 2023-Mar-15
Also on Mobile Safari(ipad), sll smooth and play well :good:

Greedy Mouse has no sound though?
Title: Re: Space Fractal's games now got webgl ports
Post by: spacefractal on 2023-Mar-15
Nice to here its works on Sarafi as well.

There should been sound, both music (if enabled) and sound fx when moving items around?

Im only using wav file in that game as im remember.

Its only Greedy Mouse this happens?
Title: Re: Space Fractal's games now got webgl ports
Post by: Qedo on 2023-Mar-15
 on Microsoft Edge cursor  keys (left right) don't work on all games

not tried heavily.
Title: Re: Space Fractal's games now got webgl ports
Post by: spacefractal on 2023-Mar-15
Sometimes, im dont know why yet, its require a F5 refresh, before the keyboard respons. Im using the same javascript code for all games. Spot Race and Catchout has no keyboard controls throught.

The games was tested with extractly with MS Edge in mind really, but tested on 4 browsers.

EDIT:
Im believe this mightbeen happens when im added a document.addEventListener too early, before the page was loaded, and then no keyboard respons happens until a refresh? Im moved it into a function (under DetectCanvasResize(), that is started from c++ code anyway), so hope its works better now.

Only updated Greedy Mouse as testing.
Title: Re: Space Fractal's games now got webgl ports
Post by: Qedo on 2023-Mar-16
SF , Greedy Mouse  on Microsoft Edge now it works great
Title: Re: Space Fractal's games now got webgl ports
Post by: spacefractal on 2023-Mar-16
its can still been happens. but not allways a refresh is required. its property a security/focus issue by the browser(s). but its did help throught. So if there is any keyboard issues, then refresh the game.
Title: Re: Space Fractal's games now got webgl ports
Post by: bigsofty on 2023-Mar-17
Greedy Mouse has sound now.
Title: Re: Space Fractal's games now got webgl ports
Post by: spacefractal on 2023-Mar-17
im diddent touch any of the sound. so browsers is strange sometime. sound refuse to work until you clicking on the game throught. this is nothing im can do of course. Im only try to add that listinger a bit later....