Add a 3-wall map
This commit is contained in:
@@ -75,12 +75,16 @@
|
||||
|
||||
<!-- <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="-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>
|
||||
<polygon class="wall" points="-130,-80 -40,-70 -70,-10" />
|
||||
<polygon class="wall" points="50,70 90,-10 130,70" />
|
||||
<polygon class="wall" points="-130,100 -70,50 -40,110" />
|
||||
</g>
|
||||
|
||||
<g id="triangles"></g>
|
||||
<g id="edges"></g>
|
||||
<g id="bullets"></g>
|
||||
@@ -120,7 +124,7 @@
|
||||
const halfPi = Math.PI / 2;
|
||||
const maxSpeed = 100;
|
||||
|
||||
const drawCollisionLines = true;
|
||||
const drawCollisionLines = false;
|
||||
|
||||
let previous, zero, frameCount = 0;
|
||||
let position = [0, 0]; // meters
|
||||
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user