Skip to main content
GameDev.net gamedev.net
🔒 Locked

python browser games

Started by Fla5hbang Mar 28, 2013 at 9:33 PM 4 replies 7.4k views
Original Post
Fla5hbang
Fla5hbang
i recently finished a game for the blood in the water themed mini ludum dare that i made in pygame. unfortunately pygame is annoying to make exe with so now im not even sure if im gonna upload my game. but that got me thinking is there anyway to upload pygame games to browsers? iv heard about iron python and pyjs which translate python code to java allowing you to make web games and there's another thing called web2py for web dev. .i was planning on just relearnig htm5 and learning some java but now l im thinking about just learning about pyjs or should i go with ironpython instead?

does anyone have any advice or info on the subject.
jsvcycling
jsvcycling

PyJS converts from Python to Javascript, not Java. Java and Javascript are two different languages.

I think your best bet would be to use PyJS. You will mostly likely need to do some Javascript editing because there might be bugs in the conversion process, but I think it is definitely the best way to got for web games. Its extremely powerful if used properly (e.g. Mozilla and Epic Games just recently completed their conversion of Unreal Engine 3 to Javascript).

Some favourite quotes:Never trust a computer you can't throw out a window.
- Steve Wozniak

The best way to prepare [to be a programmer] is to write programs, and to study great programs that other people have written.
- Bill Gates

There's always one more bug.
- Lubarsky's Law of Cybernetic Entomology

Think? Why think! We have computers to do that for us.
- Jean Rostand

Treat your password like your t
jsvcycling
jsvcycling

CoffeeScript is gonna be the way to go in terms of Javascript languages. I've used it in the past and the syntax is very easy to pickup if you have experience with Python.

Some favourite quotes:Never trust a computer you can't throw out a window.
- Steve Wozniak

The best way to prepare [to be a programmer] is to write programs, and to study great programs that other people have written.
- Bill Gates

There's always one more bug.
- Lubarsky's Law of Cybernetic Entomology

Think? Why think! We have computers to do that for us.
- Jean Rostand

Treat your password like your t
Fla5hbang
Fla5hbang

yea python is my main language. i checked it out and it looks pretty darn close to python heck it looks better than python! im gonna take your advice and brush up on my javascript just in case(i only know the basics) right now im trying to wrap my head around basically starting from scratch. i love python but javascript has everything i want and more so i think coffeescript is the best bet.

thanks for helping me out with all this

tp9
tp9

How is the conversion going? Have you posted it online?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.