Skip to content
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

Possible to use url Param or a value from local storage in the game code #549

Open
saitanay opened this issue Jul 15, 2024 · 1 comment
Open

Comments

@saitanay
Copy link

I have built a small game. Able to render it on the web using the web launcher

Unable to figure out if there is a way I can access an url Param or a cookie or a local storage value in game python code via pyodide.

Any such example code?

Thanks in advance.

@kitao
Copy link
Owner

kitao commented Oct 20, 2024

There's no such API in Pyxel for now. But the Web version of Pyxel runs on PyO3, so you may use some way with PyO3.
Please check PyO3's document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants