-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpitfall.html
More file actions
86 lines (78 loc) · 3.04 KB
/
pitfall.html
File metadata and controls
86 lines (78 loc) · 3.04 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pitfall! - Atari 2600 Clone</title>
<link rel="stylesheet" href="styles/pitfall.css">
</head>
<body>
<div id="game-container">
<div id="header">
<h1>PITFALL!</h1>
<p class="subtitle">An Atari 2600 Classic</p>
</div>
<div id="score-panel">
<div class="score-item">
<span class="label">SCORE</span>
<span id="score">0000</span>
</div>
<div class="score-item">
<span class="label">LIVES</span>
<span id="lives">♥♥♥</span>
</div>
<div class="score-item">
<span class="label">TIME</span>
<span id="timer">20:00</span>
</div>
<div class="score-item">
<span class="label">LEVEL</span>
<span id="level">1</span>
</div>
</div>
<canvas id="gameCanvas" width="640" height="400"></canvas>
<div id="controls-info">
<p><strong>Controls:</strong>
<span class="key">←</span><span class="key">→</span> Move |
<span class="key">SPACE</span> Jump |
<span class="key">↑</span> Climb/Grab Vine |
<span class="key">↓</span> Descend/Duck |
<span class="key">R</span> Restart
</p>
</div>
<div id="start-screen">
<h2>PITFALL!</h2>
<p>Help Pitfall Harry collect treasures while avoiding dangers!</p>
<div class="instructions">
<h3>Obstacles:</h3>
<ul>
<li>🕳️ Expanding Pits - Time your jumps!</li>
<li>🛢️ Rolling Barrels - Jump over them!</li>
<li>🪨 Underground Passages - Find the ladder!</li>
<li>🌿 Vines - Swing across dangers!</li>
<li>🐊 Crocodiles - Jump on closed mouths!</li>
</ul>
</div>
<button id="startButton">START GAME</button>
</div>
<div id="game-over-screen" class="hidden">
<h2>GAME OVER</h2>
<p>Final Score: <span id="final-score">0</span></p>
<button id="restartButton">PLAY AGAIN</button>
</div>
<div id="level-complete-screen" class="hidden">
<h2>LEVEL COMPLETE!</h2>
<p>Score: <span id="level-score">0</span></p>
<p>Bonus: <span id="time-bonus">0</span></p>
<button id="nextLevelButton">NEXT LEVEL</button>
</div>
<div id="victory-screen" class="hidden">
<h2>🏆 CONGRATULATIONS! 🏆</h2>
<p>You completed all levels!</p>
<p>Final Score: <span id="victory-score">0</span></p>
<button id="playAgainButton">PLAY AGAIN</button>
</div>
</div>
<script src="scripts/pitfall.js"></script>
</body>
</html>