-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (26 loc) · 996 Bytes
/
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
<html>
<head>
<link rel="stylesheet" href="./main.scss">
</link>
</head>
<body>
<div id="battleground">
<svg viewbox="-500 -500 1000 1000" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="smallGrid" width="25" height="25" patternUnits="userSpaceOnUse">
<path d="M 25 0 L 0 0 0 25" fill="none" stroke="gray" stroke-width="0.5" />
</pattern>
<pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse">
<rect width="100" height="100" fill="url(#smallGrid)" />
<path d="M 100 0 L 0 0 0 100" fill="none" stroke="gray" stroke-width="1" />
</pattern>
</defs>
<rect width="4000" height="4000" transform="translate(-2000 -2000)" fill="url(#grid)" />
<g class="ships" width="100%" height="100%"></g>
<g class="bullets" width="100%" height="100%"></g>
</svg>
</div>
<div id="timestamp"></div>
<script src="main.ts"></script>
</body>
</html>