forked from mcfarhat/phaser_game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (22 loc) · 874 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (22 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Phaser Barebone Project</title>
<style>
body { margin: 0; padding: 0; overflow: hidden; background-color: #000; }
canvas { display: block; margin: 0 auto; } /* Center the canvas */
</style>
</head>
<body>
<!-- The div where Phaser will inject the game canvas -->
<div id="game-container"></div>
<!-- Include Phaser library -->
<!-- Using CDN for simplicity. For production, consider self-hosting or using a build tool -->
<script src="//cdn.jsdelivr.net/npm/phaser@3.55.2/dist/phaser.min.js"></script>
<!-- Include your game's main script -->
<!-- Ensure this script is loaded AFTER Phaser -->
<script type="module" src="./src/main.js"></script>
</body>
</html>