mhb
mhb

Reputation: 753

Python vs Flash

Can python be used as a language to develop browser based games? Like we do in flash. If yes then what frameworks are available to get my hands dirty? If no then what are the reasons?

Upvotes: 3

Views: 1479

Answers (4)

kindall
kindall

Reputation: 184200

You can run IronPython code in the Silverlight plug-in.

Upvotes: 1

John Percival Hackworth
John Percival Hackworth

Reputation: 11531

I am not aware of a browser plug-in for Python. With that in mind, no in-browser games. If you used PyGame you could do network delivered game. Alternately, you could go the AJAXy route and have a Python server work with JavaScript or some other tool a browser.

If you go for a hybrid approach pretty much any AJAXy framework would work.

Upvotes: 0

relima
relima

Reputation: 3423

Give it a try to Panda3D. I have successfully used it before to create and deploy 3D game environments that run in a browser (runtime is required). Works for Mac. Linux and Windows.

Examples here: http://www.panda3d.org/gallery/

Their manual is very clear and has a bunch of examples. http://www.panda3d.org/manual/index.php/Main_Page

Upvotes: 3

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798794

Flash uses a separate plugin that runs within the browser in order to have better access to the resources on the system. Python can currently only be used to generate the various formats that the browser uses (HTML, SVG, JavaScript, etc.), which restricts the feature set that can be exposed using Python.

There is Pyjamas for easily converting between Python and JavaScript, but it hasn't really been applied to games as far as I know, and graphics would still be a separate issue.

And of course, it may also be possible to generate Flash applets using Python via various libraries.

Upvotes: 1

Related Questions