| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>Pixel Survival - PixiJS v8</title> |
| <style> |
| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
| body, html { |
| width: 100%; |
| height: 100%; |
| background-color: #000; |
| overflow: hidden; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| } |
| #game-container { |
| width: 90vmin; |
| height: 90vmin; |
| background-color: #111; |
| box-shadow: 0 0 20px rgba(0,0,0,0.5); |
| border: 4px solid #333; |
| } |
| #game-container canvas { |
| width: 100%; |
| height: 100%; |
| display: block; |
| image-rendering: pixelated; |
| } |
| </style> |
| </head> |
| <body> |
| <div id="game-container"></div> |
| <script type="module" src="game.js"></script> |
| </body> |
| </html> |