-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (52 loc) · 1.67 KB
/
index.html
File metadata and controls
52 lines (52 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tiny Creatures</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #111; }
#game {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
canvas { image-rendering: pixelated; }
#attribution {
position: fixed;
bottom: 6px;
left: 0;
width: 100%;
text-align: center;
font-family: monospace;
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
pointer-events: auto;
z-index: 10;
}
#attribution a {
color: rgba(255, 255, 255, 0.75);
text-decoration: underline;
text-decoration-color: rgba(255, 255, 255, 0.3);
text-underline-offset: 2px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
padding-bottom: 1px;
}
#attribution a:hover {
color: rgba(255, 255, 255, 0.95);
text-decoration-color: rgba(255, 255, 255, 0.7);
border-bottom-color: rgba(255, 255, 255, 0.5);
}
</style>
</head>
<body>
<div id="game"></div>
<div id="attribution">
Made with ❤️ & Grok by <a href="https://twitter.com/xnt" target="_blank" rel="noopener">Vicente Plata</a>. <a href="https://github.com/xnt/tiny-creatures/" target="_blank" rel="noopener">Read the source or contribute</a>.
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>