You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to brython
Hello is it possible to run pygame using Brython?
Joao S. O. Bueno
unread,
Dec 1, 2017, 11:04:29 AM12/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bry...@googlegroups.com
On 1 December 2017 at 13:36, <rth...@codecraftworks.com> wrote:
> Hello is it possible to run pygame using Brython?
No.
Pygame uses SDL which is tied to the OS.
However, it should be possilbe to write a compatible project
re-implementing much
of pygame, and even re-using the code for modules like pygame.sprite.
Without anything ready, though, the solution is to use html Canvas
directly from Brython-
I have an example Space Invaders implmentation here (although I had
not tested it with
recent versions of Brython)