Spaces:
Running
Running
make game viewport a little smaller
Browse files- index.html +43 -19
index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<style>
|
7 |
body {
|
8 |
margin: 0;
|
9 |
-
padding:
|
10 |
background: #1a1a1a;
|
11 |
display: flex;
|
12 |
justify-content: center;
|
@@ -16,34 +16,45 @@
|
|
16 |
font-family: "Courier New", monospace;
|
17 |
image-rendering: pixelated;
|
18 |
overflow: hidden; /* Prevent scrolling */
|
|
|
19 |
}
|
20 |
|
21 |
#gameContainer {
|
22 |
background: #2c3e50;
|
23 |
-
padding:
|
24 |
border-radius: 10px;
|
25 |
box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
#gameCanvas {
|
29 |
-
border:
|
30 |
display: block;
|
31 |
image-rendering: pixelated;
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
#ui {
|
35 |
-
margin-top:
|
36 |
color: white;
|
37 |
text-align: center;
|
|
|
38 |
}
|
39 |
|
40 |
.stats {
|
41 |
display: flex;
|
42 |
justify-content: space-around;
|
43 |
-
margin-top:
|
44 |
-
padding:
|
45 |
background: #1a1a1a;
|
46 |
border-radius: 5px;
|
|
|
47 |
}
|
48 |
|
49 |
#dialogue {
|
@@ -62,9 +73,9 @@
|
|
62 |
|
63 |
.game-title {
|
64 |
text-align: center;
|
65 |
-
margin-bottom:
|
66 |
color: #ecf0f1;
|
67 |
-
font-size:
|
68 |
font-weight: bold;
|
69 |
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
|
70 |
letter-spacing: 2px;
|
@@ -78,8 +89,8 @@
|
|
78 |
display: flex;
|
79 |
align-items: center;
|
80 |
justify-content: center;
|
81 |
-
margin-bottom:
|
82 |
-
gap:
|
83 |
"
|
84 |
>
|
85 |
<div class="game-title" style="color: #dc143c; margin: 0">
|
@@ -87,12 +98,12 @@
|
|
87 |
</div>
|
88 |
<img
|
89 |
src="https://takara.ai/images/logo-24/TakaraAi.svg"
|
90 |
-
width="
|
91 |
alt="Takara.ai Logo"
|
92 |
style="filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5))"
|
93 |
/>
|
94 |
</div>
|
95 |
-
<canvas id="gameCanvas" width="
|
96 |
<div id="ui">
|
97 |
<div class="stats">
|
98 |
<div>π€ AI: <span id="aiCount">0</span>/β</div>
|
@@ -103,28 +114,42 @@
|
|
103 |
<div
|
104 |
id="questDisplay"
|
105 |
style="
|
106 |
-
margin-top:
|
107 |
-
padding:
|
108 |
background: rgba(220, 20, 60, 0.1);
|
109 |
border-radius: 5px;
|
110 |
border: 1px solid #dc143c;
|
111 |
"
|
112 |
>
|
113 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
Current Quest:
|
115 |
</div>
|
116 |
<div
|
117 |
id="questTitle"
|
118 |
-
style="color: #ecf0f1; font-size:
|
119 |
>
|
120 |
Welcome to Takara.ai
|
121 |
</div>
|
122 |
-
<div id="questDesc" style="color: #bdc3c7; font-size:
|
123 |
Find your first AI architecture!
|
124 |
</div>
|
125 |
</div>
|
126 |
</div>
|
127 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
β¨οΈ WASD/Arrows to move β’ β‘ SPACE to interact β’ π Explore Takara.ai
|
129 |
Research Lab!
|
130 |
</div>
|
@@ -3432,4 +3457,3 @@
|
|
3432 |
</script>
|
3433 |
</body>
|
3434 |
</html>
|
3435 |
-
|
|
|
6 |
<style>
|
7 |
body {
|
8 |
margin: 0;
|
9 |
+
padding: 10px;
|
10 |
background: #1a1a1a;
|
11 |
display: flex;
|
12 |
justify-content: center;
|
|
|
16 |
font-family: "Courier New", monospace;
|
17 |
image-rendering: pixelated;
|
18 |
overflow: hidden; /* Prevent scrolling */
|
19 |
+
box-sizing: border-box;
|
20 |
}
|
21 |
|
22 |
#gameContainer {
|
23 |
background: #2c3e50;
|
24 |
+
padding: 15px;
|
25 |
border-radius: 10px;
|
26 |
box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
|
27 |
+
max-width: 95vw;
|
28 |
+
max-height: 95vh;
|
29 |
+
display: flex;
|
30 |
+
flex-direction: column;
|
31 |
+
box-sizing: border-box;
|
32 |
}
|
33 |
|
34 |
#gameCanvas {
|
35 |
+
border: 3px solid #000;
|
36 |
display: block;
|
37 |
image-rendering: pixelated;
|
38 |
+
max-width: 100%;
|
39 |
+
max-height: 60vh;
|
40 |
+
object-fit: contain;
|
41 |
}
|
42 |
|
43 |
#ui {
|
44 |
+
margin-top: 8px;
|
45 |
color: white;
|
46 |
text-align: center;
|
47 |
+
flex-shrink: 0;
|
48 |
}
|
49 |
|
50 |
.stats {
|
51 |
display: flex;
|
52 |
justify-content: space-around;
|
53 |
+
margin-top: 8px;
|
54 |
+
padding: 8px;
|
55 |
background: #1a1a1a;
|
56 |
border-radius: 5px;
|
57 |
+
font-size: 14px;
|
58 |
}
|
59 |
|
60 |
#dialogue {
|
|
|
73 |
|
74 |
.game-title {
|
75 |
text-align: center;
|
76 |
+
margin-bottom: 8px;
|
77 |
color: #ecf0f1;
|
78 |
+
font-size: 24px;
|
79 |
font-weight: bold;
|
80 |
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
|
81 |
letter-spacing: 2px;
|
|
|
89 |
display: flex;
|
90 |
align-items: center;
|
91 |
justify-content: center;
|
92 |
+
margin-bottom: 8px;
|
93 |
+
gap: 12px;
|
94 |
"
|
95 |
>
|
96 |
<div class="game-title" style="color: #dc143c; margin: 0">
|
|
|
98 |
</div>
|
99 |
<img
|
100 |
src="https://takara.ai/images/logo-24/TakaraAi.svg"
|
101 |
+
width="50"
|
102 |
alt="Takara.ai Logo"
|
103 |
style="filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5))"
|
104 |
/>
|
105 |
</div>
|
106 |
+
<canvas id="gameCanvas" width="560" height="420"></canvas>
|
107 |
<div id="ui">
|
108 |
<div class="stats">
|
109 |
<div>π€ AI: <span id="aiCount">0</span>/β</div>
|
|
|
114 |
<div
|
115 |
id="questDisplay"
|
116 |
style="
|
117 |
+
margin-top: 8px;
|
118 |
+
padding: 8px;
|
119 |
background: rgba(220, 20, 60, 0.1);
|
120 |
border-radius: 5px;
|
121 |
border: 1px solid #dc143c;
|
122 |
"
|
123 |
>
|
124 |
+
<div
|
125 |
+
style="
|
126 |
+
color: #dc143c;
|
127 |
+
font-weight: bold;
|
128 |
+
margin-bottom: 4px;
|
129 |
+
font-size: 13px;
|
130 |
+
"
|
131 |
+
>
|
132 |
Current Quest:
|
133 |
</div>
|
134 |
<div
|
135 |
id="questTitle"
|
136 |
+
style="color: #ecf0f1; font-size: 13px; margin-bottom: 2px"
|
137 |
>
|
138 |
Welcome to Takara.ai
|
139 |
</div>
|
140 |
+
<div id="questDesc" style="color: #bdc3c7; font-size: 11px">
|
141 |
Find your first AI architecture!
|
142 |
</div>
|
143 |
</div>
|
144 |
</div>
|
145 |
+
<div
|
146 |
+
style="
|
147 |
+
text-align: center;
|
148 |
+
color: #ecf0f1;
|
149 |
+
margin-top: 8px;
|
150 |
+
font-size: 13px;
|
151 |
+
"
|
152 |
+
>
|
153 |
β¨οΈ WASD/Arrows to move β’ β‘ SPACE to interact β’ π Explore Takara.ai
|
154 |
Research Lab!
|
155 |
</div>
|
|
|
3457 |
</script>
|
3458 |
</body>
|
3459 |
</html>
|
|