Jump to content

Python and Pixi.js


Recommended Posts



just a short notice that it is possible to use the programming language Python with Pixi.js (and other libraries including Three.js, Howler,js and so forth) by using Brython, a Python implementation for the browser.


Here's a minimal example:

(code http://jsfiddle.net/dirkk0/s7butdL1)




Link to comment
Share on other sites

Brython is pretty slow compared to PythonJS.

All those libs just take Python code, then translate it to javascript and then run it in the browser.

That might be convenient for a python developer but other than that, I don't see the benefit of this.

Afaik JS (v8) runs 5 times faster than Python, not gonna replace JS.

Link to comment
Share on other sites

@hubert: exactly - ain't that cool?  :-)



Exactly. That's why I intend to use both Brython and PythonJS.

Brython runs in the browser on the fly and makes experiments somewhat easier. PythonJS will compile to a native JS file which is better in production.

Turns out, the Brython community is somewhat more responsive than the guy who does PythonJS. I filed an issue on the PythonJS github a week ago and got no response so far. http://goo.gl/YEChly

I have Pixi.js and Howler.js running with Brython so far. I had no luck with Phaser, though.

Link to comment
Share on other sites

Yeah pixi and howler is the stack I use for my game. As for server side I intended to use Vertx.io since it is faster than node and has a few advantages over node when it comes to managing threads on your server.


The thing is that vertix can run javascript on server side like node but it is hard to find anyone that can manage this part of the code at server side for a fair price (making games is fun and all but we're RUNNING A BUSSINESS HERE!) anyway brython shows another possiblity to reuse the code but in other direction Server side to Browser Side!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...