UNPKG

html2d

Version:

A Typescript game engine to build HTML5 games for the web using webcomponents.

39 lines (37 loc) 1.02 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Keoom2Dkit</title> <script type="module" src="./main.ts"></script> </head> <body> <style> body, html { background: #96ffc1; margin: 0; padding: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; display: flex; justify-content: center; align-items: center; user-select: none; } .game-wrapper { width: 640px; height: 320px; background-color:burlywood; transform: scale(2); overflow: hidden; } </style> <div class="game-wrapper"> <km-hero></km-hero> </div> </body> </html>