Custom Phaser Web Client (/executable)

I did a quick search for ‘web client’ and it looks like no one came up with it yet. It might be a bit of a peculiar question but i was wondering :slight_smile:

Has anyone ever given any thought to a custom web-client for use with phaser … say like for instance a specially compiled build of firefox where you can use a setup to link it to one single website, give it a custom id for the “http_ …” environment (like you could with curl for instance) , limit and alter the control set you get and also the tabs or number of tabs, making it somewhat of a standalone yet connected-only game.

If my question’s not clear please do tell me i’ll try to elaborate. A client that can be downloaded to a windows or linux executable (so you could put it in for evaluation on valve/steam for instance) and has nothing to let anyone move away from your site ?

I have been thinking about it but i think compiling a browser-to-custom-client from scratch is atm still a bit above my braingrade or maybe i should say experience b/c i simply have no clue where to start or how to …

If anyone has anything related they ever thought about or busy with it or anything at all to say , even if its something like “i think thats a daft idea and a waste of time” all reactions are seriously appreciated …

I think it would be a great asset to the whole community to have something like that, even better if maintained by a fanatic team :stuck_out_tongue: … opensourced probably like phaser itself or TILED and open up a world of options too (if you ever heard of stuff like PICO or Voxatron they’re basically also ‘software’-consoles, it could be something like that where you can download the executable to your OS of choice and just run it i.o. navigating to a site where the user can do all kinds of nasties … like refreshing the window lol … )

just , euhm well

any comment or idea or notion on the topic would be welcome, thanks in advance (hoping anyone reads it lol)
:scream:

Sounds like you’re looking for Electron. It’s Chromium combined with Node.js and it allows you to run a website as if it were a native app.

1 Like

Or nw.js, which one is better for game application? RPG maker uses nw,js (and PIXI.js)

1 Like

Hi,
I never used electron but it seems you have to use it at the beginning of your app, but this give you more features.
nw.js has less features instead, but you can just take your web app as is, and embedded it. I used it with phaser games without problems. You have the possibility to pre compile your code, so sources aren’t visible.

1 Like

Electron has no special requirements regarding the code you run. You just need to add a simple wrapper which tells it which file to run. Other than that, it works like a web browser.

I didn’t know about this, but it can definitely be an advantage of NW.js. It looks like it also keeps up with Chromium faster and allows you to remove the developer tools, so it could certainly be the better choice over Electron.

1 Like

both certainly look like a very valid suggestion, thanks a lot i’ll be checking both, that might indeed be exactly what i need without the need to start from zip … awesomeness!!!
(edit) but also , i cant really call myself a professional so i might be lacking in technical jargon , sorry for that.
I’m used to standard apache-linux (lampsql whatever its called today) i have 0 xp with node.js . The original idea with the php side is to prevent any kind of cheating as all actual decisions and math happen serverside . It’s a hobby project but quite extensive for my doing, so if i can avoid having to study node.js would ofc be handy but i do need the checks to happen outside the client. Since when the world was young c64scene taught me there’s no such thing as uncrackable clients lol. It’s no DRM its just making sure you can’t jump to places on the map or packetspam your way to loot 1000gp io 10, losing a life already happened by the time it shows in the client, stuff like that.
Always lagging behind on replies and a true force of chaos but i’ll try to follow up and put some links online if i have something in the slightest presentable as an example (better than 10bibles of words probably) , in the meantime everyone thanks (in caps²) for the replies, ill be checking, much obliged !!!

thanks much i’ll be checking both suggestions, that could be a timesaver if it runs on both win/linux (and phones?)
I’m guessing like phaser itself its not something you’ll get up and running on 20 different machines in 5 minutes, thing is i connect a lot online to a webserver/php scripts using a lot of jquery there , if that thing is client-side only its not gonna be enough, if i can use it as a client with its own id and all functionality it should be what i need … guess i got a lot of reading to do, thanks thanks thanks !!!