-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mario Run</title>
<link rel="stylesheet" href="style.css">
<script src="/script.js" defer></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
</head>
</head>
<body>
<main id="game-area" class="game-area">
<img src="/imgs/background.png" alt="" class="background">
<img src="/imgs/background.png" alt="" class="background">
<div id="score" class="score">0</div>
<div id="lives-container" class="lives-container">
<img src="/imgs/BerryRed.gif" alt="Life" id="life-1" class="life">
<img src="/imgs/BerryRed.gif" alt="Life" id="life-2" class="life">
<img src="/imgs/BerryRed.gif" alt="Life" id="life-3" class="life">
</div>
<div id="start-screen" class="start-screen">
<h2>MARIO RUN</h2>
<p>Space bar: Jump <br> Right Arrow: Shoot</p>
<p>PRESS <span>ENTER</span> TO START</p>
</div>
<div id="gameover-screen" class="gameover-screen hide">
<h2>GAME OVER</h2>
<p>Your score was <span id="score-tag">0</span></p>
<p>PRESS <span>ENTER</span> TO <br> TRY AGAIN</p>
</div>
<div id="mario" class="mario pixelart">
<img src="/imgs/mario-standing-sprite.png" alt="Mario" id="mario-sprites" class="mario-sprites">
</div>
</main>
</body>
</html>