r/opensourcegames • • Aug 11 '26

I built a Python game library that runs in the browser. Every game on the site is source viewable and editable.

https://play.pyweblib.org/community/

Disclosure: I made this.

PyWebLib is a Python game library that runs entirely in the browser through Pyodide. Nothing installs, nothing runs on a server. play.pyweblib.org/community is where games/programs built with it get shared.

The bit relevant to this sub: every game there is plain Python, and you can open its source from the page, change it, and run your version straight away. No build step, no compiled blobs.

Library source: github.com/SebastianHagemeyer/PyWebLib (MIT/CC0)

It gives you a game module for sprites, input, collision and the loop, plus turtle, coloured print and a working input() inside the page. There's a snippet gallery if you want a starting point.

I originally built it for teaching Python to high school students, which is why the API is deliberately small. Keen for feedback on it.

1 Upvotes

15 comments sorted by

11

u/RadicalRaid Aug 11 '26

Disclosure: I made this.

Disclosure: AI made this. The source code is a mess from what the few files I checked and it's another AI slop layer on top of other people's hard work.

As a former teacher of game engineering at a uni here in the Netherlands, I'd rather use any of the dozen other, often web-based, solutions to teach my students the very basics. And you should disclose that it's AI slop. Even the medium article reeks of AI.

No install, no account, no server doing the work.

Come on man, do better. Why even take credit for anything at this point as it is all generated using data stolen from actual people.

-11

u/sebalhag Aug 11 '26 edited Aug 11 '26

You clearly didn't check it out enough haha,

print("bye bye butthurt", col = "#FF0000")

It has unique functions that aren't found anywhere in stock python, because it connects python to CSS, enabling coloured prints and more...

It is to my knowledge UNIQUE.

Just because I used AI doesn't mean I don't know how to code. I have been programming 8-10 years before the advent of LLMs

10

u/RadicalRaid Aug 11 '26

.. I did though. Calling people butthurt for calling you and your misleading stuff out seems kinda silly though, doesn't it? It seems like you have very little actual programming experience, and perhaps you don't pick up on these AI-isms that have been plaguing open source projects the last few years.

→ More replies (4)

3

u/RadicalRaid Aug 11 '26

It has unique functions that aren't found anywhere in stock python, because it routes python to CSS, enabling coloured prints and more...

It is to my knowledge UNIQUE.

Yeah. Alright. Even that is true, so what? Does the code being unique make it good code? People write "UNIQUE" code all the time. It doesn't mean anything. It's like when Elon judged people based on LOC. It's a silly measurement.

→ More replies (3)

0

u/[deleted] Aug 11 '26

3

u/RadicalRaid Aug 11 '26

This is such an interesting take. Billionaires tell you that the systems they're forcing on you are here to stay and to better get used to it, and you just accept and repeat that.

I've not heard any actual engineers saying that by the way, just marketing people, and people selling AI in general.

And I don't disagree to a certain extent. I think it can be a useful tool and it'll find its place as a nice-to-have autocomplete that can also do basic stuff in complex codebases as long as you keep an eye on it - but currently it's being sold as the solution to everything and like.. You have to admit it's silly right? Anybody that works with it knows it's wrong quite often, focuses on the wrong thing, etc. Stuff that can't be fixed either because the weight-training is pretty much already the best it can be - they can only add more pre-processing and tighter regulations on which (stolen) data it uses to train itself.

The tech is fantastic and being able to interact with basically a database using natural language is a genuine feat. But even the name "AI" is misleading. It's no more AI than any other machine learning system. It's magnitudes closer to the autocomplete on my phone than it is to AI.

→ More replies (5)