I am a big fan of HTML5 games. I understand their limitations but given the trend of high powered mobile devices and ubiquitous nature of the web, i believe it's one of the best ways to distribute simple and light weight games.
I've been participating in PyWeek for a while now and have been trying to pickup and use different libraries available in python for game dev. The last two times i participated in PyWeek, i added partial support for cocos-creator in cocos (python version of cocos2d-x). This helped me accelerate the Development but i was always stuck with making builds that would fail on different operating system due to library handling etc.
This is when i started to look for deploying Python code to web.. the first time around the only thing that i came across was pyjs/pyjamas which i was unable to get started with as they were blocked at python 2.7.* I needed something that worked with the latest of python.
Recently though i came across "Transcrypt" i instantly loved it as it did the exact things i wanted i quickly setup the dev env and started experimenting with it. I wanted to check if this was the only option for python on web so started looking and found others.
Brython
Skulpt
Here is a good post talking about various options available for getting python running in the browser.
https://pythontips.com/2019/05/22/running-python-in-the-browser/
Transcrypt is designed to work well with the existing javascript libraries which is a big positive. I'll be using Transcrypt for this PyWeek and see how it goes. I've been making sample programs to understand how it works etc, what i realised is that a little javascript expertise is helpful when trying to add support for new modules, but if you are just using existing ones then you don't have to worry much.
I've been participating in PyWeek for a while now and have been trying to pickup and use different libraries available in python for game dev. The last two times i participated in PyWeek, i added partial support for cocos-creator in cocos (python version of cocos2d-x). This helped me accelerate the Development but i was always stuck with making builds that would fail on different operating system due to library handling etc.
This is when i started to look for deploying Python code to web.. the first time around the only thing that i came across was pyjs/pyjamas which i was unable to get started with as they were blocked at python 2.7.* I needed something that worked with the latest of python.
Recently though i came across "Transcrypt" i instantly loved it as it did the exact things i wanted i quickly setup the dev env and started experimenting with it. I wanted to check if this was the only option for python on web so started looking and found others.
Brython
Skulpt
Here is a good post talking about various options available for getting python running in the browser.
https://pythontips.com/2019/05/22/running-python-in-the-browser/
Transcrypt is designed to work well with the existing javascript libraries which is a big positive. I'll be using Transcrypt for this PyWeek and see how it goes. I've been making sample programs to understand how it works etc, what i realised is that a little javascript expertise is helpful when trying to add support for new modules, but if you are just using existing ones then you don't have to worry much.
Comments