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.

33 lines
854 B

  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. }
  19. </style>
  20. </head>
  21. <body>
  22. <!-- SNES resolution: 256x224. 4x scaled: 1024 x 896. -->
  23. <canvas id="canvas" width="256" height="224"></canvas>
  24. <div id="debug"></div>
  25. <button id="1x">1x</button>
  26. <button id="2x">2x</button>
  27. <button id="3x">3x</button>
  28. <button id="4x">4x</button>
  29. <button id="5x">5x</button>
  30. <script src="main.js"></script>
  31. </body>
  32. </html>