Author Topic: Space Fractal's games now got webgl ports  (Read 146 times)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
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.
« Last Edit: 2023-Mar-09 by spacefractal »
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Space Fractal's games now got webgl ports
« Reply #1 on: 2023-Mar-09 »
All of them run nicely in my Firefox  :good:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2795
    • View Profile
Re: Space Fractal's games now got webgl ports
« Reply #2 on: 2023-Mar-15 »
Also on Mobile Safari(ipad), sll smooth and play well :good:

Greedy Mouse has no sound though?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Space Fractal's games now got webgl ports
« Reply #3 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?
« Last Edit: 2023-Mar-15 by spacefractal »
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 389
  • to program what I have do how should programming?
    • View Profile
Re: Space Fractal's games now got webgl ports
« Reply #4 on: 2023-Mar-15 »
 on Microsoft Edge cursor  keys (left right) don't work on all games

not tried heavily.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Space Fractal's games now got webgl ports
« Reply #5 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.
« Last Edit: 2023-Mar-16 by spacefractal »
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 389
  • to program what I have do how should programming?
    • View Profile
Re: Space Fractal's games now got webgl ports
« Reply #6 on: 2023-Mar-16 »
SF , Greedy Mouse  on Microsoft Edge now it works great

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Space Fractal's games now got webgl ports
« Reply #7 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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2795
    • View Profile
Re: Space Fractal's games now got webgl ports
« Reply #8 on: 2023-Mar-17 »
Greedy Mouse has sound now.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Space Fractal's games now got webgl ports
« Reply #9 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....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.