Skip to content

Instantly share code, notes, and snippets.

@dck-jp
Created August 19, 2012 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dck-jp/3392932 to your computer and use it in GitHub Desktop.
Save dck-jp/3392932 to your computer and use it in GitHub Desktop.
HTML5 Tetris@Office app
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<title>HTML5 Tetris</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<link rel='stylesheet' href='style.css' />
</head>
<body>
<canvas width='300' height='600'></canvas>
<script src='js/tetris.js'></script>
<script src='js/controller.js'></script>
<script src='js/render.js'></script>
</body>
<!--
A very simple HTML5 version of Tetris, for educational purposes, made in 45 minutes.
Watch the making-of timelapse: http://www.youtube.com/watch?v=GQTZ_TPxJhM
Play: http://dionyziz.logimus.com/tetris/
License
This version of tetris is MIT licensed:
Copyright (C) 2012 Dionysis "dionyziz" Zindros dionyziz@gmail.com
-->
</html>
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
<Id>dcc5cd0b-c044-4083-9bef-d0ad4d8a55ec</Id>
<Version>1.0</Version>
<ProviderName>D*isuke</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="HelloTetris" />
<Description DefaultValue="tetris"/>
<IconUrl DefaultValue="http://officeimg.vo.msecnd.net/_layouts/images/general/office_logo.jpg" />
<Capabilities>
<Capability Name="Workbook" />
<Capability Name="Document" />
</Capabilities>
<DefaultSettings>
<SourceLocation DefaultValue="\\***Catalog***\HelloTetris.html" />
</DefaultSettings>
</OfficeApp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment