News

Play in your web browser

3

Timo 2018-10-30 10:18 (Edited)

Finally you can run LowRes NX programs directly in the web browser! Currently only the main program of each topic/page works, not the additional attachments. The web player is made for desktop computers only, not for mobile, there is no on-screen gamepad.

Keys:

Button: Player 1 | Player 2

UP: Arrow Up | E
DOWN: Arrow Down | D
LEFT: Arrow Left | S
RIGHT: Arrow Right | F
A: Z/N | Q/Tab
B: X/M | A/Shift

The web player supports sound, but some browser disable it by default. Make sure you find the setting to enable it.

Have fun!


was8bit 2018-10-30 11:56

I'm assuming it isn't flash as I've tried flash browsers for the iPad (which actually run the flash on their severs and stream the images to the iPad) and nothing shows...


Timo 2018-10-30 12:08

It's C compiled to WebAssembly using emscripten. It runs in an HTML5 canvas without any plug-ins. Technically it already works on mobile, but it's too much work to make games using the gamepad or the keyboard really playable.
I'll try to fix the scaling, so that you can at least watch demos on mobile.


was8bit 2018-10-30 17:49

Oh, well how about games with touch only interface :)


Timo 2018-10-30 18:27

Then they may work bad on normal computers... It's an endless circle of doom!


was8bit 2018-10-30 21:00

Ah... well... there doesn't seem to be an instant super easy fix of any sort...

Perhaps posted games could be flagged as "touch controls" or "gamepad/keyboard controls" ... then possibly games could be sorted out with this flag setting... so people without touch control could easily sort out games that require touch control, and people with touch screens could browse games that use touch control ...

It would require people posting games to have to chose one or the other before it posted.... that could mean too much programming to implement the idea...


was8bit 2018-10-30 21:04

I could be smart about my games and figure out a subroutine that starts the game off as gampad controlled, but then the user could, in game, switch it to touch screen control if they wanted it... I would have to add a fail safe and only allow the switch to touch control by making the player touch the screen to verify the switch, and time out when no touch is detected to keep the gamepad control...

Sounds like a fun challenge, i accept my challenge :)


was8bit 2018-10-31 02:38

i completely tested the PLAY feature on my windows tablet... i tested it with firefox browser, the windows browser, and with browsers set in regular and in full screen mode, and with my "computer" set in regular (with real keyboard) mode as well as in tablet mode (with virtual keyboard)

in all cases, i could not access keyboard control any programed gamepad controls... :(

i DID have limited TOUCH control on my SIMPLE TOUCH program.... however, the touch was limited to cell 0,0 regardless of where i touched the screen, so it no matter where on the screen i touched, the program responded as if i was always tapping cell 0,0

the programs run though, so if no user input is required, i get sound from the animated lowres intro, and i get animation from the programs...


was8bit 2018-10-31 02:40

oh, and in my FEED THE ZOO ANIMALS game, all of my programmed sounds run and play and i can hear the all just fine :) i just cant play the game ...


was8bit 2018-10-31 02:48

UPDATE:

i discovered that the arrow keys DO work in the games... however the TAB and SHIFT keys do nothing... CTRL-F opens up the browsers FIND feature
none of the letter keys do anything

when playing NX games via the downloaded NX program on my computer, i have to use CNTRL-F to activate lowres full screen before the letter keys will work... i am wondering if that is why my tablet cannot use the letter keys for the auto run from your website...


Timo 2018-10-31 10:27

I disabled all the Ctrl hot keys for the web version. Eventually I will enable the fullscreen mode again, but it's some work on the website, too.

The game programmer should not care about making the controls work on the web. Should be me making the web work nicely, so every program works automatically. Anyway, it's a lot of work... Too many platforms to care about :O


was8bit 2018-10-31 12:08

I know it's a lot of work on your end :( but it's greatly appreciated of course!! :)

That's where gamemaker originally appealed to me, but they keep changing their language all the time... it was too much stress tryin to relearn all the coding changes :/


Log in to reply.