[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re:



On 11/12/06, Toni Alatalo <antont@xxxxxxxxxxxxx> wrote:
Renà Dudfield kirjoitti:
> The main ways for making browser games are flash, and javascript.
javascript seems pretty cool nowadays,
i mean the possibilities with the support for things in browsers / DOM
manipulation
have you guys written game-like things with it?

i saw in some PyPy things at least the idea of a python -> javascript
translator thing too :p
(tho certainly things are in a way funner on the SDL/OpenGL side of
things but you know)

You clearly don't speak from experience ;) Writing games in JavaScript (for the DOM anyway) is a huge mistake unless it's simple and/or text based, like a crossword game or sudoku. It's about four hundred thousand times easier to get it right in Flash, especially with regard to event handling and browser compatibility. Flash also nets you sound, vector graphics, more advanced networking capabilities, etc.

If you don't want to buy Flash, then there are freely available
compilers. MTASC+Swfmill is a popular choice. If you're looking for
more advanced features and can require the Flash 9+ plugin then you
could use Adobe's free Flex 2 SDK or the open source haXe to compile
down to AVM2 bytecode, which executes much faster. The new "Project
Tamarin" that Adobe open sourced for use by Mozilla in future
JavaScript engines is extracted from the AVM2 implementation in Flash
9, but bytecode compiled for older versions of Flash still uses the
older and much slower stack based VM.

-bob