What I Did On My Summer Vacation

A little geometry project in which I make things move . . . → Read More: What I Did On My Summer Vacation

Generating Generics: Creating Classes at Run Time in Flash

A simple demonstration of class generation in Actionscript using the as3-commons-bytecode library
. . . → Read More: Generating Generics: Creating Classes at Run Time in Flash

Playing 52-Card Pickup To Win

So you come on board without having had a look at the code base. First off you find that the developer build process consists of a page of instructions that require you to do about fifteen more steps than “svn checkout; import Flash Builder project; profit.” Then, looking at those steps, you see no mention of . . . → Read More: Playing 52-Card Pickup To Win

The Arrogant Enum

This enum thinks it’s the last word in ActionScript enumerated-type implementations. In fact it thinks it’s so hot that it calls itself the Ultimate Enum. Check it out and see if it doesn’t do the trick for you. If it doesn’t, please let me know and I hope we can improve it further.

Example . . . → Read More: The Arrogant Enum

Blobs in Games: Polygon Map Generation, by Amit Patel

Amit Patel has published a great article on map generation based upon Voronoi polygons. He generates the Voronoi polygons using my as3delaunay library. But the polygons are just the beginning of his process…

Try the demo! And — yum — see the . . . → Read More: Blobs in Games: Polygon Map Generation, by Amit Patel

Trees Grow

Constrained minimum spanning trees as shape fills, the moving version of my earlier post The Name of the Node. . . . → Read More: Trees Grow

Roll Over, Delaunay: Voronoi Library Goes Open-Source

I’ve released the as3delaunay library on github! . . . → Read More: Roll Over, Delaunay: Voronoi Library Goes Open-Source

Implementing Enumerated Types in ActionScript 3

UPDATE I’ve improved on this implementation; please see the later post The Arrogant Enum.

This is about implementing an enum in AS3 with value restriction ( i.e. the programmer should be unable to diminish or add to the set of values) and type safety.

We’ll implement the data type as a Class. In order to keep . . . → Read More: Implementing Enumerated Types in ActionScript 3

Crystals, Evil Rangers, and Voronoi without an Engine

In Flash we can HARNESS THE POWER OF BITMAPDATA (as it might be put in a conference session blurb) to grow Voronoi regions under differing conditions, without doing any algebra. Click on the image to launch the Voronoi Generator.

Variations on Voronoi Diagrams, from Geometry in Action:

One way of getting Voronoi diagrams is by growing . . . → Read More: Crystals, Evil Rangers, and Voronoi without an Engine

Marching Squares: Boundary detection

A little code for a change. . . . → Read More: Marching Squares: Boundary detection