-
Notifications
You must be signed in to change notification settings - Fork 346
Support browser #2556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I took a look into some other setups, it looks like input handling should be easy to just redirect the html events like webwindow does it for ZenGL: https://github.com/szabolcsdombi/webwindow/blob/main/webwindow.py |
If Clepto or someone else finds a WebGPU adapter layer, we can can expand on that template's element creation. Looks like |
I don’t know that WebGPU is necessary. The only thing Arcade needs that isn’t supported by WebGL 2(and thus also provided by Emscripten as standard OpenGL) is geometry shaders, and WebGPU doesn’t support those either, so we’d still have to rework those pieces |
Pyglet is activly working on web support with first results 🎉 |
Feature requested
Support to distribute and play arcade based games within the browser.
Why?
Packaging Python does get easier and with utilisation of free GitHub Actions like New Arcade Game Template it is possible to automatically package Arcade based games as shippable artefacts for Win, MacOS and Linux.
These artefacts still have a huge drawback. They are reported as dangerous by the different OS, which can only be solved by paying a lot of money to sign the created artefacts and make them "trusted". Users have to actively ignore or disable security measures to play those games.
This is the reason why multiple GameJams already restrict submissions to browser supported artefacts.
In game development this is not a huge limitation, because other projects already support this (Unity, Godot).
In addition PyGame already have their foot in the door of browser support.
Why does it matter?
For me as Arcade Dev, I have a high interest, that my efforts I spend on Arcade, bring value to other game developer or people who learn Python. Projects like PyScript are IMHO the next big step to push Python to become the most used language. Supporting game development on a PyScript base would give us a push in attention and new users. It also would make it really simple to get started.
My current state of knowledge so far
headless
-mode and EGL rendering.embed
helper module, which should be easy to replace because it just provides the EGL contextTo compile all of these
How I test:
Getting started with pyglet in the browser is pretty easy, it just not works :D
Store this as
index.html
and usepython -m -m http.server -d ./ -b 127.0.0.1
I set up a repo to test it myself and use the fork of pmp-p: https://github.com/eruvanos/arcade-web-support/blob/pygbag/README-WEB.md
The text was updated successfully, but these errors were encountered: