Mozilla Demo Studio

  • Submit a Demo

grrd's Puzzle

grrd’s Puzzle is a HTML5 jigsaw puzzle game.

Built using JavaScript, HTML5, Canvas, Mobile, Files

  • 268 views
  • 2 comments

More About This Demo From The Author

grrd’s Puzzle is a HTML5 jigsaw puzzle game for your smartphone, tablet or desktop. You can choose from various images or play with your own pictures at the level of difficulty of your choice. It uses the canvas-element with the kinetic.js framework and scales dynamically to run fullscreen on any device.
Settings are stored in the HTML5 localStorage. The exif-information of local images is used to rotate them if needed. On FirefoxOS-Devices, the pick-activity is used to load local images.

Now available on Firefox Maketplace:
https://marketplace.firefox.com/search?q=grrd
and Chrome Web Store:
https://chrome.google.com/webstore/search/grrd?hl=de

2 comments so far

Register or log in to add your own.

  1. Darbicus said,

    Cool, but I wish you had used a randomized shape rather than all the shapes being exactly the same. You could use my code here https://developer.mozilla.org/en-US/demos/detail/jigsaw-puzzle also here http://jsfiddle.net/Darbicus/pT4Bu/21/ to generate random shapes that look like natural puzzle pieces(or maybe just more challenging pieces).
  2. grrd said,

    Hi Darbicus
    Thanks for your comment! The shape of each piece is defined by 8 bezier curves. Shifting these point by some random pixels should not be too difficult. However, this is not the direction my project will develop in the near future. Currently I'm working on publishing this in Demo in different WebApp-Stores like Chrome, Amazon and the brandnew FirefoxOS. And when I'm done with this, I'll try to create native iPhone/Android apps with PhoneGap.

Get the Source Code

Download the Source 18518.6 KB · ZIP File

Browse the Source

This demo is released under the MPL/GPL/LGPL license.

More by grrd