![]() |
PyGame in the Browser/NodeWebkit? Yes! - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: Code sharing (https://python-forum.io/forum-5.html) +--- Thread: PyGame in the Browser/NodeWebkit? Yes! (/thread-3744.html) |
PyGame in the Browser/NodeWebkit? Yes! - asherwunk - Jun-20-2017 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. |