35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html background-color="black">
|
|
<head>
|
|
<script src="phaser-arcade-physics.min.js"></script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
|
|
<script src="js/webFont.js"></script>
|
|
<script src="js/mainmenu.js"></script>
|
|
<!-- <script src="js/game.js"></script> -->
|
|
<!-- <link href=" https://cdn.jsdelivr.net/npm/reset-css@5.0.2/reset.min.css " rel="stylesheet"> -->
|
|
<style>
|
|
html { background-color: rgb(32, 41, 58); overflow-y: hidden; }
|
|
body { margin: 0; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
const config = {
|
|
type: Phaser.AUTO,
|
|
width: 1920,
|
|
height: 980,
|
|
scene: [ MainMenu ],
|
|
scale: {
|
|
mode: Phaser.Scale.FIT,
|
|
autoCenter: true
|
|
},
|
|
backgroundColor: 0x000000, // Black background color
|
|
physics: {
|
|
default: 'arcade'
|
|
}
|
|
};
|
|
|
|
const game = new Phaser.Game(config);
|
|
</script>
|
|
</body>
|
|
</html> |