46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>City Builder - Multiplayer</title>
|
||
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="game-container">
|
||
|
|
<!-- Login Screen -->
|
||
|
|
<login-screen id="loginScreen"></login-screen>
|
||
|
|
|
||
|
|
<!-- Game UI -->
|
||
|
|
<div id="gameUI" style="display: none;">
|
||
|
|
<!-- Stats Display -->
|
||
|
|
<stats-display id="statsDisplay"></stats-display>
|
||
|
|
|
||
|
|
<!-- Building Toolbox -->
|
||
|
|
<building-toolbox id="buildingToolbox"></building-toolbox>
|
||
|
|
|
||
|
|
<!-- Chat Box -->
|
||
|
|
<chat-box id="chatBox"></chat-box>
|
||
|
|
|
||
|
|
<!-- Context Menu -->
|
||
|
|
<context-menu id="contextMenu"></context-menu>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Three.js Canvas -->
|
||
|
|
<canvas id="gameCanvas"></canvas>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Three.js -->
|
||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
||
|
|
|
||
|
|
<!-- Game Modules -->
|
||
|
|
<script type="module">
|
||
|
|
import { App } from '/static/js/App.js';
|
||
|
|
|
||
|
|
// Initialize app globally
|
||
|
|
window.app = new App();
|
||
|
|
window.app.init();
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|