Web Browser Pygame Plug-in?

Gregory Piñero gregpinero at gmail.com
Mon Jul 10 10:57:39 EDT 2006


That's interesting, Ben.  So we'd be better off making a new library
similiar to Pygame in functionality but designed from the ground up to
work in a browser.  I guess that XPCOM technology that someone
mentioned might be the way to go?


On 10 Jul 2006 03:54:33 -0700, Ben Sizer <kylotan at gmail.com> wrote:
> Gregory Piñero wrote:
> > I was just idley curious on what it would take to make a web plug-in
> > for Pygame.  I'm picturing it working the way my browser currently
> > shows flash games.  Is such an idea even possible?  Has anyone
> > attempted this?
>
> I doubt you can get PyGame to work this way - at least, not without
> some significant hacking around in the source - since PyGame relies on
> the underlying SDL library, and from my experience with it, I can't see
> it playing well with a browser whatsoever. I think SDL would have to
> acquire a new backend to translate input to the plugin into their event
> structure, and would require some way of creating an appropriate video
> mode that can draw to a browser's window, etc. Java applets and Flash
> are built for this purpose whereas PyGame is built on a technology that
> was designed for programs that have their own window and tend to
> capture all the OS's input.
>
> --
> Ben Sizer
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>


-- 
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)



More information about the Python-list mailing list