Zenith-Vector/index.html

38 lines
1019 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zenith Vector</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Arial', sans-serif;
}
#game-container {
position: relative;
}
</style>
</head>
<body>
<div id="game-container"></div>
<!-- Load Phaser from local file -->
<script src="phaser.min.js"></script>
<!-- Import game modules using ES6 modules -->
<script type="module">
import { config } from './src/config.js';
import { GameScene } from './src/scenes/GameScene.js';
const game = new Phaser.Game(config);
game.scene.add('GameScene', GameScene, true);
</script>
</body>
</html>