pygame-web / pygbag

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

handle /static/ in simulator #143

Open pmp-p opened 7 months ago

pmp-p commented 7 months ago

when running in simulator redirect fopen() to local ./static/ folder to serve web assets first, not original game assets

eg in order : ./static/file.png [ same level as index.html ] ./file.png [ local original file, will be in apk ]