Jump to content

  • Log In with Google      Sign In   
  • Create Account


python browser games


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 MiniKong   Members   -  Reputation: 175

Like
1Likes
Like

Posted 28 March 2013 - 03:33 PM

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.

Sponsor:

#2 Josh Vega   Crossbones+   -  Reputation: 1140

Like
1Likes
Like

Posted 28 March 2013 - 08:38 PM

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:
Spoiler

#3 MiniKong   Members   -  Reputation: 175

Like
1Likes
Like

Posted 29 March 2013 - 03:42 AM

I think I'm gonna mess around with Gamejs(its very similar to pygame) and coffeescript. I found this online and coffeescript looks like it could save me a lot of trouble. Iv been messing around with it all night
http://qpatterns.wordpress.com/2012/11/13/try-coffeescript-the-python-way/


Edited by MiniKong, 29 March 2013 - 08:26 AM.


#4 Josh Vega   Crossbones+   -  Reputation: 1140

Like
0Likes
Like

Posted 29 March 2013 - 09:30 AM

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:
Spoiler

#5 MiniKong   Members   -  Reputation: 175

Like
0Likes
Like

Posted 29 March 2013 - 10:38 AM

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



#6 tp9   Members   -  Reputation: 411

Like
0Likes
Like

Posted 15 April 2013 - 03:05 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS