<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Tower Gamer</title>
<link href='http://fonts.googleapis.com/css?family=Cherry+Swash' rel='stylesheet' type='text/css'>
<style>
body { background: #111; }
#tower { position: relative; margin: 1em auto; width: 512px; height: 384px; border: 4px solid #C080C0; }
#hud { position: absolute; bottom: 0em; width: 8em; background-color: red; opacity: 0.8; border: 4px solid black; }
#score { color: yellow; font-size: 2em; font-family: 'Cherry Swash', cursive }
#canvas { display: inline-block; width: 100%; height: 100%; }
#instructions { font-style: italic; color: #999; font-size: 9pt; margin-left: 1em; margin-top: 0.5em; }
#instructions b { color: #DDD; }
@media screen and (min-width: 0px) and (min-height: 0px) { #tower { width: 512px; height: 384px; font-size: 7pt; } } /* block = 16 */
@media screen and (min-width: 840px) and (min-height: 530px) { #tower { width: 640px; height: 480px; font-size: 9pt; } } /* block = 20 */
@media screen and (min-width: 968px) and (min-height: 626px) { #tower { width: 768px; height: 576px; font-size: 11pt; } } /* block = 24 */
@media screen and (min-width: 1096px) and (min-height: 722px) { #tower { width: 896px; height: 672px; font-size: 13pt; } } /* block = 28 */
@media screen and (min-width: 1224px) and (min-height: 818px) { #tower { width: 1024px; height: 768px; font-size: 15pt; } } /* block = 32 */
</style>
</head>
<body>
<center><h1 style="color:#fff;">Tower Game</h1></center>
<div id="tower">
<div id="hud">
<table>
<tr><td><img src="images/coin.png"></td><td><span id="score"></span></td></tr>
</table>
</div>
<canvas id="canvas">
<div class="unsupported">
Sorry, this example cannot be run because your browser does not support the <canvas> element
</div>
</canvas>
<div id="instructions">
<b>LEFT or RIGHT Arrow Keys</b> to move, <b>Up Arrow Key</b> to Climb, <b>SPACE</b> to jump
<span id="debug"></span>
</div>
</div>
<script src="js/fpsmeter.min.js"></script>
<script src="js/common.js"></script>
<script src="js/tower.js"></script>
</body>
</html>