20 lines
632 B
HTML
20 lines
632 B
HTML
<!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 200x200 SVGs in Inkscape with the pencil tool and a stroke width of 20
|
|
Make sure the scale is set to 1 and that the id is set to a unique value
|
|
Also, change the stroke to currentColor so we can style the color with CSS
|
|
-->
|
|
<svg id="d"></svg>
|
|
<svg id="u"></svg>
|
|
<svg id="m"></svg>
|
|
<svg id="b"></svg>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|