-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathintro-luck.html
More file actions
146 lines (133 loc) · 4.59 KB
/
intro-luck.html
File metadata and controls
146 lines (133 loc) · 4.59 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TEDx 3D Pac-Man Challenge</title>
<link rel="stylesheet" href="intro-styles.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Press+Start+2P&display=swap"
rel="stylesheet">
<style>
/* Your existing styles are kept the same */
body {
font-family: 'Roboto', sans-serif;
color: white/75;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
color: #646464;
}
header h1,
section h2 {
font-family: 'Press Start 2P', cursive;
text-align: center;
color: white;
}
.rules ul {
list-style-type: none;
padding: 0;
}
.rules li {
background: #f4f4f4;
margin-bottom: 10px;
padding: 15px;
border-left: 5px solid red;
}
.play-btn {
display: block;
width: fit-content;
margin: 40px auto 0;
padding: 15px 30px;
background-color: red;
color: white;
text-decoration: none;
font-weight: bold;
border-radius: 8px;
text-align: center;
font-family: 'Press Start 2P', cursive;
}
.play-btn:hover {
background-color: #cc0000;
}
.button-container {
display: flex;
justify-content: flex-end;
width: 100%;
margin-top: 50px;
}
.nav-button {
display: block;
margin: 50px auto;
padding: 15px 30px;
background-color: black;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1.2em;
font-weight: bold;
text-align: center;
text-decoration: none;
width: fit-content;
transition: background-color 0.3s, color 0.3s;
margin-right: 20px;
}
.nav-button:hover {
background-color: red;
color: white;
}
@media (max-width: 600px) {
.nav-button {
padding: 12px 25px;
font-size: 1em;
border-radius: 6px;
margin-right: 10px;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Welcome to the TEDx 3D Pac-Man Challenge</h1>
</header>
<section class="intro">
<h2>Game Introduction</h2>
<p>
Experience a classic reborn in 3D! This unique version of Pac-Man challenges you to navigate a maze from
a first-person perspective. Your goal is to clear the maze of all dots while skillfully avoiding the
relentless ghosts. It's a test of navigation and quick decision-making in a fully 3D world.
</p>
</section>
<section class="rules">
<h2>Game Rules & Controls</h2>
<ul>
<li><strong>Controls:</strong> Use the <strong>W, A, S, D</strong> keys to control Pac-Man.</li>
<li><strong>W:</strong> Move Forward</li>
<li><strong>S:</strong> Move Backward</li>
<li><strong>A:</strong> Turn Left</li>
<li><strong>D:</strong> Turn Right</li>
<li><strong>Objective:</strong> Eat all the small dots in the maze to complete the level.</li>
<li><strong>Power Up:</strong> Eat one of the four large, flashing "Power Pellets". This will
temporarily turn the ghosts white, allowing you to hunt them for bonus points!</li>
<li><strong>Game Over:</strong> The game ends if a ghost catches you. You only have one life, so be
careful! Your score will reset for the next attempt.</li>
</ul>
</section>
<section class="prize">
<h2>Show Off Your Score!</h2>
<p>
Think you've mastered the 3D maze? Get the highest score you can and challenge your friends!
</p>
</section>
<footer>
<a href="https://tedx-nitk-pacman-game.vercel.app/" class="play-btn">Play the Game</a>
</footer>
</div>
<div class="button-container">
<a href="/" class="nav-button">Home</a>
</div>
</body>
</html>