Puzzle (Flickr)

We all know those puzzle games where you have to unshuffle an image by shifting one piece at a time. Kris Cieslak has made one such game, using YUI as usual, but instead of just using a predefined image, he lets you pull in an image from Flickr. How cool is that?

He talks about how he created the game on his blog. You type in a search query which is then sent off to Flickr. A number of images are returned and you get to pick which one to use. The image is then "chopped up" by creating several instances, each in its own small container element, and then using CSS background positions to only show the relevant part of the image.

It's a pretty clever use of the Flickr API and I hope we'll see more and more games like this one that make creative use of all the data is available through this and similar APIs.

Read more...
0 comments
Post a Comment