DEMO: http://iqandreas.isbetterthanyou.org/public/kirupa.com/square-contest-2011/
The code is written in AS3 and uses Box2D for the physics and MinimalComps for the components.
At first I wrote the code up as a prototype just to test a concept (and rather than rewrite the code cleanly, I just kept adding onto it so it became one tightly-coupled mess).
Later I entered it into a contest held on the Kirupa Forums, and modified it slightly to fit the contest theme.
The source is available on GitHub in case anyone is curious how it was achieved (and yes, I did cheat. It's not actually dynamic. The movement of all those shapes are "pre-baked" during the "Loading" screen and simply played back afterwards, which is why it is able to take up so little CPU on playback.


NIce
ReplyDelete