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

pygbag on replit #110

Open vangeest opened 11 months ago

vangeest commented 11 months ago

Thank you so much for making pygbag available. I'm happy to share its benefits for me and how I got it to work in replit.

I'm a computer science teaching. replit is our preferred environment for assignments that we give to students, as it requires no installation of software on the computers in the classroom and it can be used on the chromebooks that all students have.

I'm creating a new assignment for students in which they have to programm a game with pygame. Running pygame in replit is easy. Replit had an out of the box configuration for python with pygame which runs on replit servers and sends the graphics to a browser window of the student (using something like vnc I think). Unfortunatelly this architecture has performance issues on the free accounts replit offers.

Running pygbag on the replit servers fixes the performance issues. And a nice add-on is that the game made can be shared through any static webserver.

You can find the github-repo with a configuraiton for replit containing python, pygame, pygbag, a static server and a simple demonstration game (just moving dvd logo) here: https://github.com/vangeest/pygame-pygbag-replit-poc

You can import it in replit with one push on the button in the readme.md, or go straight to replit: https://replit.com/@vangeest/pygame-pygbag-replit-poc

readme.md shows how I created the repo.

I do know that this configuration is far from clean. I'm primarily a teacher and not a first class programmer, so this was all I could do. But it is working (for me at least).

pmp-p commented 11 months ago

nice, i think the link top right on your gh repo got truncated of "-poc" i only got it to run with https://replit.com/@vangeest/pygame-pygbag-replit-poc instead of https://replit.com/@vangeest/pygame-pygbag-replit

vangeest commented 11 months ago

You are right, I made a mistake in de link. Thanx for your remark about it.

Op ma 21 aug. 2023 17:24 schreef Paul m. p. Peny @.***>:

nice, i think the link top right on your gh repo got truncated of "-poc" i only got it to run with @./pygame-pygbag-replit-poc instead of @./pygame-pygbag-replit

— Reply to this email directly, view it on GitHub https://github.com/pygame-web/pygbag/issues/110#issuecomment-1686542243, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXTVBAEB5IZ62WXSWSEA5DXWN4SXANCNFSM6AAAAAA3O2EOOQ . You are receiving this because you authored the thread.Message ID: @.***>