collissions example

This commit is contained in:
2026-08-21 15:32:38 +02:00
parent 822542dba8
commit 777898acfb
2 changed files with 182 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #000000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.canvas-wrapper {
width: 90vw;
height: 90vh;
border-radius: 16px;
background-color: #1e293b;
}
#canvas {
display: block;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="canvas-wrapper">
<canvas id="canvas" tabindex="0"></canvas>
</div>
</body>
<script src="collisions.js" type="module"></script>
</html>