blob: 4f3a8d735c490316a9cb235fa4a15f2ee559e5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<head>
<title>Dumb physics engine</title>
<meta name="description" content="Converts SVGs into a set of circles and use those circles for dumb collision checking">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--
Draw SVGs in Inkscape with the scale set to 1
Use the pencil tool with a stroke width of 20 and round endcaps
Then change the stroke color to currentColor so we can style it with CSS (might have to do this in a text editor)
-->
<svg id="d"></svg>
<svg id="u"></svg>
<svg id="m"></svg>
<svg id="b"></svg>
<script src="script.js"></script>
</body>
</html>
|