Home & blog  /  2010  /  Oct  /  view post  /

Sliding block puzzle game in Javascript

posted: 03 Oct '10 15:34 tags: puzzle, slide, jQuery, Javascript, game, drag

Just posted this in the script section. It's a JS/jQuery-powered version of the classic sliding block puzzle game that was popular with kids in decades past.

Head over here to download, get usage info or view a demo.

This version allows you to specify the URL to an image to use (not necessarily on your server), the number of blocks to break it into and randomly shuffle, and even whether to allow the user to specify the URL to another picture.

If so, a form field displays and the user can enter the URL to a picture which, once loaded, restarts and resizes the puzzle with that new image.

Enjoy!

post new comment

Comments (0)