Processing: Tangram II

I made some more progress with Processing this weekend (was sick all week, hung out and coded).

Try out the very basic first go at a Tangram game. (much more coming, including shapes, improved rotation, etc. – instructions at the bottom of the screen).

Still very impressed with Processing’s simplicity and power.

Things I learned this weekend:

  • I suck at geometry… like flipping a 2D shape on the X or Y axis took me a bit
  • I used a2 + b2 = c2 a for the second time (since building the garden on an uneven slope last year)
  • Finding out if a mouse click is in a rotated shape given an angle based on PI/2 … f’ing rocket science (so I’m cheating and using pixel color detection… KISS)
  • Pushing and Popping the matrix is cool stuff.

1 Comment

zachFebruary 13th, 2006 at 4:21 pm

where’s the “I win” button?