Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -39
index.html
CHANGED
@@ -94,45 +94,6 @@
|
|
94 |
</div>
|
95 |
</div>
|
96 |
|
97 |
-
<style>
|
98 |
-
#titleScreen {
|
99 |
-
position: fixed;
|
100 |
-
top: 0;
|
101 |
-
left: 0;
|
102 |
-
width: 100%;
|
103 |
-
height: 100%;
|
104 |
-
background: url('city2.png') no-repeat center center;
|
105 |
-
background-size: cover;
|
106 |
-
z-index: 2000;
|
107 |
-
display: flex;
|
108 |
-
flex-direction: column;
|
109 |
-
justify-content: center;
|
110 |
-
align-items: center;
|
111 |
-
}
|
112 |
-
|
113 |
-
#titleScreen h1 {
|
114 |
-
font-size: 72px;
|
115 |
-
color: white;
|
116 |
-
text-shadow: 2px 2px 5px black;
|
117 |
-
margin-bottom: 50px;
|
118 |
-
}
|
119 |
-
|
120 |
-
.stageButton {
|
121 |
-
padding: 15px 30px;
|
122 |
-
font-size: 24px;
|
123 |
-
background: #4CAF50;
|
124 |
-
color: white;
|
125 |
-
border: none;
|
126 |
-
border-radius: 5px;
|
127 |
-
cursor: pointer;
|
128 |
-
margin: 10px;
|
129 |
-
}
|
130 |
-
|
131 |
-
.stageButton:disabled {
|
132 |
-
background: #666;
|
133 |
-
cursor: not-allowed;
|
134 |
-
}
|
135 |
-
</style>
|
136 |
</head>
|
137 |
<body>
|
138 |
<div id="instructions">
|
@@ -202,6 +163,7 @@
|
|
202 |
</div>
|
203 |
<button id="bossButton" class="button">Fight Boss!</button>
|
204 |
<div id="winMessage" class="button" style="font-size: 72px; background: none;">You Win!</div>
|
|
|
205 |
const canvas = document.getElementById('gameCanvas');
|
206 |
const ctx = canvas.getContext('2d');
|
207 |
const nextRoundBtn = document.getElementById('nextRound');
|
|
|
94 |
</div>
|
95 |
</div>
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
</head>
|
98 |
<body>
|
99 |
<div id="instructions">
|
|
|
163 |
</div>
|
164 |
<button id="bossButton" class="button">Fight Boss!</button>
|
165 |
<div id="winMessage" class="button" style="font-size: 72px; background: none;">You Win!</div>
|
166 |
+
<script>
|
167 |
const canvas = document.getElementById('gameCanvas');
|
168 |
const ctx = canvas.getContext('2d');
|
169 |
const nextRoundBtn = document.getElementById('nextRound');
|