Konami Code added to DestroyFramework
Sure, I could have spent tonight working on useful features for DestroyTwitter, but no, I wrote a KonamiCode. To use it, simply instantiate it with a stage and you’re good to go.
package com.destroytoday.desktop
{
import com.destroytoday.desktop.KonamiCode;
import flash.display.Sprite;
public class KonamiCodeTest extends Sprite
{
public var konamiCode:KonamiCode;
public function KonamiCodeTest()
{
konamiCode = new KonamiCode(stage);
konamiCode.executed.add(konamiCodeExecutedHandler);
}
protected function konamiCodeExecutedHandler():void
{
trace("woohoo!");
}
}
}
On a related note, I realized I’ve been neglecting GitHub for months, but now I’m back! I also plan to return to the experimentation game after reminiscing about my convex hull, delaunay triangulation, and voronoi studies at work today. When you develop apps all day, writing experiments can be a breath of fresh air, allowing a level of creativity you simply can’t get with apps.