Add a 3-wall map

This commit is contained in:
2025-12-21 16:55:33 -08:00
parent 32c1d0e56d
commit f7984595cc

View File

@@ -75,12 +75,16 @@
<!-- <polygon class="wall" points="20,20 40,20 40,40 20,40" /> --> <!-- <polygon class="wall" points="20,20 40,20 40,40 20,40" /> -->
<!-- <polygon class="wall" points="-10,-30 -10,-40 30,-50 60,-30 80,0 150,0 150,10 60,50 -10,40 -20,20 20,20 20,-20" /> --> <!-- <polygon class="wall" points="-10,-30 -10,-40 30,-50 60,-30 80,0 150,0 150,10 60,50 -10,40 -20,20 20,20 20,-20" /> -->
<!-- <polygon class="wall" points="-130,-80 -40,-70 -70,-10 -100,40 -120,100" /> --> <!-- <g> -->
<!-- <polygon class="wall" points="-130,-80 -40,-70 -70,-10" /> -->
<!-- <polygon class="wall" points="50,70 90,-10 130,70" /> -->
<!-- </g> -->
<g> <g>
<polygon class="wall" points="-130,-80 -40,-70 -70,-10" /> <polygon class="wall" points="-130,-80 -40,-70 -70,-10" />
<polygon class="wall" points="50,70 90,-10 130,70" /> <polygon class="wall" points="50,70 90,-10 130,70" />
<polygon class="wall" points="-130,100 -70,50 -40,110" />
</g> </g>
<g id="triangles"></g> <g id="triangles"></g>
<g id="edges"></g> <g id="edges"></g>
<g id="bullets"></g> <g id="bullets"></g>
@@ -120,7 +124,7 @@
const halfPi = Math.PI / 2; const halfPi = Math.PI / 2;
const maxSpeed = 100; const maxSpeed = 100;
const drawCollisionLines = true; const drawCollisionLines = false;
let previous, zero, frameCount = 0; let previous, zero, frameCount = 0;
let position = [0, 0]; // meters let position = [0, 0]; // meters

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB