Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

My submission to the Mozilla Dev Derby of August 2011

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 img
Octocat-spinner-32 js
Octocat-spinner-32 min
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 compile.sh
Octocat-spinner-32 index-dev.html
Octocat-spinner-32 index.html
Octocat-spinner-32 tetris.png
README.md

History API Demo

This demo is my submission to the Mozilla Dev Derby of August 2011. This is basically a Tetris integrated into the browser UI. The next piece shape is listed in the URL bar, your score is in the title bar and hover the page to display instructions (yeah, I know, this one in annoying...). I've used the History API to display useful information about the game. Browser's back/next buttons are unused. Enter a harder mode by pressing F11 ;-)

The code is available at https://github.com/gmarty/Mozilla-Dev-Derby-2011-08

This demo is built using several open source projects:

Follow me on Twitter: @g_marty


Original copyright of Tetris game by Daihua Ye:

Copyright (c) 2010, Daihua Ye All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions may not be sold, nor may they be used in a commercial product or activity.

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Something went wrong with that request. Please try again.