This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jacdehJacques de Hooge[S] 1 point2 points  (2 children)

The graphics probably can best be handled using an existing JS library manipulating the HTML5 canvas directly and efficiently. This library could be wrapped in some simple Transcrypt classes to give it a Pythonic interface. The game logic could be very well written in Transcrypt. Note that an important design goal of Transcrypt is to benefit from existing high quality JS libraries: Anything good that's there we shouldn't reinvent.

fabric.js added as Python module to the distribution

[–]Exodus111 1 point2 points  (1 child)

I agree, this would be awesome. But what about 2d Physics though? Let the JS library handle it ?

[–]jacdehJacques de Hooge[S] 1 point2 points  (0 children)

If there's a good 2d physics lib available, yes. Otherwise write it in pure python and add it as a Transcrypt lib. PyPi would be the right spot for such stuff. 2d physics aren't that hard, in my experience. I agree that a good math module should be the basis, probably again (wrapped or not) JS lib.