Skip to content

pygbag on replit #110

Open
Open
@vangeest

Description

@vangeest

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TESTINGwip feature partially implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions