-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (38 loc) · 1.3 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
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Virtual Pet Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="game-container">
<h1>Virtual Pet Game</h1>
<div class="pet-status">
<p>Hunger: <span id="hunger">50</span></p>
<p>Boredom: <span id="boredom">50</span></p>
<p>Health: <span id="health">50</span></p>
<p>Tiredness: <span id="tiredness">50</span></p>
</div>
<div class="game-actions">
<button id="feed-pet">Feed Pet</button>
<button id="play-with-pet">Play with Pet</button>
<button id="give-medicine">Give Medicine</button>
<button id="put-to-bed">Put to Bed</button>
</div>
<!-- Add the pet image container -->
<div class="pet-image">
<img id="pet" src="turtle.gif" alt="Virtual Pet">
</div>
<!-- Cat mouse image in the bottom-right corner -->
<div class="cat-mouse">
<img src="cat mouse.gif" alt="cat">
</div>
<div class="dog">
<img src="dog.gif" alt="dog">
</div>
</div>
<script src="script.js"></script>
</body>
</html>