git @ Cat's Eye Technologies The-Dipple / master javascript / side-scroller.html
master

Tree @master (Download .tar.gz)

side-scroller.html @masterraw · history · blame

<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
For more information, please refer to <https://unlicense.org/>
SPDX-License-Identifier: Unlicense
-->
<head>
  <meta charset="utf-8">
  <title>HTML5 Canvas experiment #8</title>
  <script src="side-scroller.js"></script>
  <style>
#canvas { border: 1px solid blue; }
  </style>
</head>
<body>

<h1>A Scrolling Tiled Thing</h1>

<canvas id="canvas" width="600" height="400" tabindex="0">
Your browser doesn't support displaying an HTML5 canvas.
</canvas>

<p id="status">...</p>

</body>
<script type="text/javascript">
  var canvas = document.getElementById('canvas');
  canvas.focus();
  (new SideScroller()).init(canvas);
</script>