wonderfl, an AS3 playground

wonderfl.kayac.com is a website with a web interface for the AS3 compiler. You type code into your browser, and it automatically compiles on their server after a couple seconds of inactivity, and it runs the result in your browser alongside your code. The website is full of little demos people have written, all open source so that you can copy and tweak them. It's pretty fantastic.

They have recently added support for Box2D 2.0.2. Here is a pretty comprehensive test:
http://wonderfl.kayac.com/code/f1837dc1 ... 5402b1a65d

And here is a much smaller, more elegant demo:
http://wonderfl.kayac.com/code/293aab35 ... 69c40cd5d8

Create an account, then click the "FORK" button to copy the demo's source code into your own project.
not my favorite interface for writing and compiling as3 by any means.

but its free, and if one wanted to pick up some as3 skills, this would be a good place to start, before making a purchase.
another good side of it is, it makes an alternative to a zip for asking for help in the forum. and your sure the person helping you can compile the same as you.

i had looked at wonderfl a month or so ago, just a quick glance.
wasn't sure if it easily allowed libraries of classes. appears so. nice work shaktool!

can you tell me a little bit about how you have the box2d classes on wonderfl, to make the linkages work?
I am not responsible for wonderfl's support of Box2D.

But I figure they have the standard mxmlc compiler on their server (or maybe the shell version, fcsh), and they always pass it a small set of SWC libraries to link with. If the code references those libraries, they are used, and otherwise they are ignored. Anybody who wants to use Box2D at wonderfl just has to import it in their code:

import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
...

And the compiler will find it. To see a list of the libraries that wonderfl currently links against, check out the bottom of their FAQ:
http://wonderfl.kayac.com/help
makes sense, thanks for the info!
This is awesome. Sometime it's just nice to write a couple lines of code to explore how a language works. Like irb for ruby.
mayobutter wrote:
This is awesome. Sometime it's just nice to write a couple lines of code to explore how a language works. Like irb for ruby.

If you like this, you should also check out:

Try Ruby: http://tryruby.hobix.com/ (unfortunately this is not working right at the moment, which is too bad, it's real neat when it works, probably the best take on this idea I've seen so far)
Try Python: http://datamech.com/devan/trypython/trypython.py
Javascript REPL: http://mochikit.com/examples/interpreter/

Scala, Groovy, and just about every Lisp in existence also have REPLs if you install them, but I couldn't find ways to access them online.
I've been watching this for awhile. The beauty of it is the "fork" functionality. I've seen some good shmup ideas presented and built upon. Very cool idea.

Bill
Sorry to pull off topic again, but I stumbled across a browser based Scheme, figured it was worth pointing out: http://sisc-scheme.org/sisc-online.php

Scheme (http://en.wikipedia.org/wiki/Scheme_pro ... g_language) is probably the easiest Lisp dialect to pick up, and a lot of folks think you haven't really programmed until you've Lisp-ed, so give it a shot if you're curious...
Show me one for C/C++ and I'll be impressed 😉
mayobutter wrote:
Show me one for C/C++ and I'll be impressed 😉


But the whole reason virtual machines were created was to get away from C/C++ 😉

Original thread: https://box2d.org/forum/viewtopic.php?t=2827