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

pygbag on replit #110

Open
vangeest opened this issue Aug 13, 2023 · 2 comments
Open

pygbag on replit #110

vangeest opened this issue Aug 13, 2023 · 2 comments
Labels
TESTING wip feature partially implemented

Comments

@vangeest
Copy link

vangeest commented Aug 13, 2023

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).

@vangeest vangeest changed the title pybag on replit pygbag on replit Aug 13, 2023
@pmp-p
Copy link
Member

pmp-p commented Aug 21, 2023

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
Copy link
Author

vangeest commented Aug 21, 2023 via email

@pmp-p pmp-p pinned this issue Aug 21, 2023
@pmp-p pmp-p added the TESTING wip feature partially implemented label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TESTING wip feature partially implemented
Projects
None yet
Development

No branches or pull requests

2 participants