Python Forum
PyGame in the Browser/NodeWebkit? Yes!
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyGame in the Browser/NodeWebkit? Yes!
#1
Hey guys, I'm totally new here and to be honest I'm new to conversing with many people on forums and such, despite having a blog. (http://wunk.me/)  However, I just spent the last two weeks working on something I think is kind of neat.  I've loved PyGame and Python since I taught both to my nephew one semester.  Python just always seems so straightforward, and so does PyGame.  When I discovered Brython (http://brython.info/) I was very excited.  Running a Python 3 interpreter in your browser?  That's pretty cool.

Then I came across this JavaScript game library GameJS.  (http://gamejs.org/)  It was pretty close to pygame, though with javascript idiosyncrasies and not as many features.  But I was intrigued to the point of producing something.  So I did!

Using Howler.js for sound, Priit's gamepad.js for joysticks, Brython for python interpreting, and GameJS as the main code to wrap Python around I was able to create some frankenstein of a monster running in a NodeWebkit installation I have on my computer.

All the projects and how I modified them for my purpose are on my github (asherwunk).  Here's the link to PYGJS (that's what I call it) main repository: https://github.com/asherwunk/pygjs

Thanks!
Asher

..... yay.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020