SNES-like engine in JavaScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>snej</title>
  6. <style>
  7. * { padding: 0; margin: 0; }
  8. body { background: black; color: white; font-family: monospace; }
  9. div { text-align: center; }
  10. canvas {
  11. background: magenta;
  12. display: block;
  13. margin: 0 auto;
  14. margin-top: 8px;
  15. margin-bottom: 8px;
  16. padding: 1px;
  17. image-rendering: pixelated;
  18. image-rendering: crisp-edges;
  19. image-rendering: -moz-crisp-edges;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <!-- SNES resolution: 256x224. 4x scaled: 1024 x 896. -->
  25. <canvas id="canvas" width="256" height="224"></canvas>
  26. <div id="fps"></div>
  27. <div id="debug"></div>
  28. <button id="1x">1x</button>
  29. <button id="2x">2x</button>
  30. <button id="3x">3x</button>
  31. <button id="4x">4x</button>
  32. <button id="5x">5x</button>
  33. <img src="res/tf/atlantis/tf_atlantis_tiles.png" id="atlantis" style="display: none">
  34. <img src="res/tf/halloween/ghost1.png" id="ghost" style="display: none">
  35. <script src="main.js"></script>
  36. </body>
  37. </html>