pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
319 stars 36 forks source link

ONLINE PYGAME EXECUTION #100

Closed cool-dev-guy closed 1 year ago

cool-dev-guy commented 1 year ago

Discussed in https://github.com/pygame-web/pygbag/discussions/99

Originally posted by **cool-dev-guy** June 2, 2023 Hey @pmp-p ,I studied the pygame-web final product of a pygame project and i understood that first there is a GET request to `game_name.apk` and inside it in the `assets` folder i can find a `main.py`,Is it possible to change the code inside `main.py` before its being executed,Or can i make the website run the python code which i stored in a javascript/python variable?
pmp-p commented 1 year ago

This is not the purpose of pygbag, this is about using python c-api or use of python compiler at runtime ( compile/eval ). See discussions