rairo commited on
Commit
94bf14f
·
verified ·
1 Parent(s): 7178634

Create game.html

Browse files
Files changed (1) hide show
  1. templates/game.html +40 -0
templates/game.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- templates/game.html -->
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <title>Global Heist - Game</title>
7
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
8
+ <!-- Include Three.js and Socket.IO from CDNs -->
9
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
10
+ <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"></script>
11
+ </head>
12
+ <body>
13
+ <header>
14
+ <h1>Global Heist</h1>
15
+ <p>Welcome, {{ username }}!</p>
16
+ </header>
17
+ <div class="container">
18
+ <div id="briefing">
19
+ <h2>Case Briefing</h2>
20
+ {% if active_cases|length > 0 %}
21
+ <h3>{{ active_cases[0].title }}</h3>
22
+ <p>{{ active_cases[0].briefing }}</p>
23
+ <p><strong>Clues:</strong><br>{{ active_cases[0].clues|replace('\n', '<br>')|safe }}</p>
24
+ <input type="hidden" id="case-id" value="{{ active_cases[0].id }}">
25
+ {% else %}
26
+ <p>No active cases available.</p>
27
+ {% endif %}
28
+ </div>
29
+ <div id="three-canvas"></div>
30
+ <div id="clue-section">
31
+ <h2>Submit Your Answer</h2>
32
+ <input type="text" id="answer-input" placeholder="Enter answer">
33
+ <button id="submit-answer-btn">Submit Answer</button>
34
+ </div>
35
+ </div>
36
+ <script src="{{ url_for('static', filename='js/three_setup.js') }}"></script>
37
+ <script src="{{ url_for('static', filename='js/main.js') }}"></script>
38
+ <script src="{{ url_for('static', filename='js/ui.js') }}"></script>
39
+ </body>
40
+ </html>