>
> Is it possible to do something like this in AJAX?
>
> http://www.neave.com/games/invaders/invaders.swf
Yes, but not with sound, and it wouldn't be particularly easy. Flash
is a much better tool for that kind of job.
-bob
It would not be so hard if there was an IDE like flash, but then you
get into all the browser incompatabilites and you'd probably want to
rip your pubic hair out or something by the time you got done.
-Sam
> You can play/stop sounds if you add/remove (respectivly) an embed
> object with the wav or mp3 set to with the auto play attribute set to
> true.
Sure, but that's stupid because Flash is available just about
everywhere that is, if not more available... and if you're using
Flash, you might as well do the whole thing in Flash. At least you
only have one buggy platform to code against, rather than the
gigantic set of all relevant browsers, versions of browsers, sound-
playing-plugins, and platforms.
> It would not be so hard if there was an IDE like flash, but then you
> get into all the browser incompatabilites and you'd probably want to
> rip your pubic hair out or something by the time you got done.
I'm not a fan of the Flash IDE for doing anything sufficiently
complicated.. MTASC is pretty nice though. You can get a pretty good
develop/test/run cycle if you set up a web server to fork out MTASC
when your actionscript changes.
The Flash IDE and player's debugging capabilities blow chunks, but
they're no worse than those available for JavaScript
implementations. Plus since you have LocalConnection you can do out-
of-process debugging with something like XTrace. Granted you could
probably do something like that with sync XMLHttpRequest with some
kind of specialized server, but I haven't seen that.
There probably aren't too many genre of games that make sense in the
context of AJAX. However, I'm a huge fan of both ironsudoku.com and
playbabble.com -- they're very well done, have excellent usability
and browser compatibility, and I can't imagine them being any better
given a different choice of technology.
-bob
-Sam
I'm not disagreeing with this, but I want to point out people do stuff
with JS and dynamic HTML too.
Here are various reviews of DHTML games from Jayisgames.com:
http://www.google.fi/search?q=site:jayisgames.com+dhtml
This might answer the original question. You can make games with JS as
well, and here are several examples of what is possible.
Pekka
Another question.
I love the Making JavaScript Suck Less motto. I wish ActionScript
sucked less. Is there any technical reason why MochiKit.base and
MochiKit.iter could not be ported to Flash if someone did the work?
It could certainly be ported to ActionScript 2, but I don't like AS2
and I don't do a ton of Flash. Some of MochiKit.Async was ported
from code that I had originally written in AS2. If someone were to
undertake this task, it would have to be a separate project, because
I'm not going to be responsible for maintaining a Flash port.
You might want to look at AFLAX, which lets you effectively script
Flash in JavaScript, which would let you leverage MochiKit (AFLAX
itself, at least the examples, use MochiKit).
I really wish Macrodobe wouldn't have been so stupid about diverging
from ECMA. I also wish someone would write a JavaScript->SWF
compiler (like MTASC, but without having to use that Java-like syntax).
-bob
-Sam