blob: 26a44f2c2e5f7166e613d8e31ad3809d3bbfc7ed (
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>
|