-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (115 loc) · 5.37 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>evolution</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/css/index.css">
<link rel="apple-touch-icon" sizes="180x180" href="/src/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/src/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/src/favicon/favicon-16x16.png">
<!-- <link rel="manifest" href="/site.webmanifest"> -->
</head>
<body>
<canvas id="canvas"></canvas>
<div class="welcome">
<div class="text">
<p>evolution</p>
<p style="font-size: 3vw;">a game of growth </p>
<p style="font-size: 3vw;">survive & evolve</p>
<div style="box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); background-color:wheat; color: slategray; font-size: 15px; opacity: .7;" class="instructions">
<br />
<p>instructions:</p>
<img src="/src/images/TAMA.png" alt="">
<p>evolve your tama by satisifying its needs:
<br class="break"/>
<br />
<img src="/src/images/BEVERAGE.png" alt="">
<img src="/src/images/HEART.png" alt="">
<img src="/src/images/PILLOW.png" alt="">
</p>
<p>and avoiding obstacles:
<br class="break"/>
<br />
<img src="/src/images/ROCK.png" alt="">
<br class="break"/>
<br class="break"/>
</p>
</div>
<div style="box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); background-color:wheat; color: slategray; opacity: .7;" class="mode">
<br class="break"/>
<button style="background-color: slategray; opacity: .7;" class='campaign' >campaign</button>
<!-- <br /> -->
<button style="background-color: slategray; opacity: .7;" class="unlimited">unlimited</button>
<br class="break"/>
<br class="break"/>
</div>
<p style="font-size: 3vw;">inspired by tamagotchi & flappy bird </p>
</div>
</div>
<div class="scorecard disappear">
</br>
<!-- <span class="line"> evolve</span> -->
<div><span class="score-title">age:</span> <span class="year-count">0</span></div>
<div><span class="score-title">love:</span> <progress id="love-progress" value="25" max="100"></progress></div>
<div class="health disappear"><span class="score-title">health:</span> <progress id="health-progress" value="25" max="100"></progress></div>
<div class="thirst disappear"><span class="score-title">thirst:</span> <progress id="thirst-progress" value="25" max="100"></progress></div>
<div class="rest disappear"><span class="score-title">rest:</span> <progress id="rest-progress" value="25" max="100"></progress></div>
</div>
<div class="helper">
<div class="love-helper disappear">i'm sad!</div>
<!-- <div class="health-helper">i'm injured!</div>
<div class="thirst-helper">i'm thirsty!</div>
<div class="hunger-helper">i'm hungry!</div> -->
</div>
<div class="helper">
<!-- <div class="love-helper">i'm sad!</div> -->
<div class="health-helper disappear">i'm injured!</div>
<!-- <div class="thirst-helper">i'm thirsty!</div> -->
<!-- <div class="hunger-helper">i'm hungry!</div> -->
</div>
<div class="helper">
<!-- <div class="love-helper">i'm sad!</div> -->
<!-- <div class="health-helper">i'm injured!</div> -->
<div class="thirst-helper disappear">i'm thirsty!</div>
<!-- <div class="hunger-helper">i'm hungry!</div> -->
</div>
<div class="helper">
<!-- <div class="love-helper">i'm sad!</div>
<div class="health-helper">i'm injured!</div>
<div class="thirst-helper">i'm thirsty!</div> -->
<div class="rest-helper disappear">i'm tired!</div>
</div>
<div class="evolver disappear">
<p>click or press up to evolve!</p>
</div>
<div class="score disappear"><p>your tama made it to age <span class="score-num"></span>!</p></div>
<div class="try-again">
<button>
<p>try again</p>
</button>
</div>
<div class="game-over helper disappear">
<p class="love-helper game-over-text">
</p>
</div>
<div class="congrats disappear">
<div class="copy">
<p>Congrats</p>
<p>You did it!</p>
</div>
</div>
<script src='tama.js'></script>
<script src="exhaust.js"></script>
<script src='stars.js'></script>
<script src='food.js' class="food"></script>
<script src='pillows.js'></script>
<script src='beverages.js'></script>
<script src='hearts.js'></script>
<script src='rocks.js'></script>
<script type="text/javascript" src="main.js"></script>
</body>
</html>