-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrols.html
40 lines (38 loc) · 1.39 KB
/
controls.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A game about binge eating.">
<title>Endless Appetite</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<div class="welcome">Welcome!</div>
<div class="welcome-message">This is a simple story driven game about binge eating. You just gotta click 1, 2, or 3 to select your dialogue of choice, and the story will act out based on your decision. Have fun! <br>
<p>|-----------------------|</p>
<p>1, 2, or 3 - Select</p>
<p>Space - Continue</p>
<p>Backspace - Go Back</p>
<p>|-----------------------|</p>
</div>
<div class="continue">Press Enter to start...</div>
<footer>
<p>© 2025 Ivan Belousov. All rights reserved.</p>
</footer>
<script src="music.js"></script>
<script>
musicPlayer.play();
document.addEventListener('keydown', function(event) {
if (event.key === 'Enter') {
window.location.href = 'game.html';
}
if (event.key === 'Backspace') {
event.preventDefault();
window.location.href = 'index.html';
}
});
</script>
</body>
</html>