Update server/static/index.html
This commit is contained in:
@@ -3,10 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Medieval 2D — Gather & Craft</title>
|
||||
<title>Medievalkor - Gather & Craft</title>
|
||||
<link rel="stylesheet" href="/styles.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/socket.io-client@4.7.5/dist/socket.io.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/phaser@3.80.0/dist/phaser.min.js"></script>
|
||||
|
||||
<!-- IMPORTANT: all scripts are self-hosted (CSP 'self' friendly) -->
|
||||
|
||||
<!-- Socket.IO client served by your Node server at /socket.io/socket.io.js -->
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
|
||||
<!-- Local Phaser build: you must place phaser.min.js in server/static -->
|
||||
<script src="/phaser.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="game"></div>
|
||||
@@ -18,6 +24,7 @@
|
||||
<div id="ui-inventory"></div>
|
||||
<div id="ui-crafting"></div>
|
||||
|
||||
<!-- ES module entrypoint; must come AFTER socket.io + Phaser so `io` and `Phaser` exist -->
|
||||
<script type="module" src="/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user