PYGJS (PyGame in the Browser)

571 views
Skip to first unread message

Asher Wolfstein

unread,
Jun 19, 2017, 11:35:01 PM6/19/17
to brython
Hey guys, I've been working on this for about a week-and-a-half, probably two weeks, and I'm somewhat excited about it.

I've always loved the pygame library, and one day I found a very similar library in JavaScript called GameJS... I had just come across Brython a bit earlier and it struck me...

As long as we're using Python in the browser, we can also use it in the context of NodeWebkit, and that opens many doors.

I catalog more of the journey towards producing this library in this blog post: http://wunk.me/announcing-pygjs-pygame-in-your-browsernodewebkit/

I set up a github repository-(ies) documenting my modifications and developments at my github asherwunk account, PYGJS (Pygame in JavaScript) is here: https://github.com/asherwunk/pygjs

There's also a dedicated page on my blog, but for now it just contains the readme, but that may change in the future: http://wunk.me/programming-projects/pygjs/

All in all it's a -working- draft towards using PyGame in the browser with your browser python (brython)

It's NOT an emulator, and won't run pygame constructed games right out of the box, you have to make some browser specific changes to your code, such as preloading and not blocking with an infinite while loop while processing events.

Anyways, just thought I'd throw this up there to show you what *I've* been doing with Brython,

Thanks!
Asher Wolfstein

P.S. If you like what I've written consider buying me a coffee: http://ko-fi.com/asherwolfstein  (I also have a pattern: https://www.patreon.com/asherwolfstein)

Kiko

unread,
Jun 20, 2017, 3:07:04 AM6/20/17
to bry...@googlegroups.com
Hey, that's pretty cool, Asher!!!

I think it would have more moment if you provide a link to an online working demo in order others can see the capabilities ;-D

Best.

Christophe Bal

unread,
Jun 20, 2017, 3:42:41 AM6/20/17
to bry...@googlegroups.com
+1

Christophe BAL
Enseignant Agrégé de Mathématiques
Programmeur Python Amateur

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAB-sx62_rq-FJ2_quNfg9ujDkSFVCiCAWqYJpX_%3D0E-8sdAhfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages