Update todo list
This commit is contained in:
@@ -112,8 +112,8 @@
|
||||
<line id="velocity-indicator" x1="0" y1="0" x2="0" y2="0"/>
|
||||
<line id="acceleration-indicator" x1="0" y1="0" x2="0" y2="0"/>
|
||||
<g id="legs">
|
||||
<path d="M 3 2 l 2 2 v 2 m -2 0 h 4" stroke="black" fill="none" />
|
||||
<path d="M -3 2 l -2 2 v 2 m -2 0 h 4" stroke="black" fill="none" />
|
||||
<path d="M 3 2 l 2 2 v 2 m -1.5 0 h 3" stroke="black" fill="none" />
|
||||
<path d="M -3 2 l -2 2 v 2 m -1.5 0 h 3" stroke="black" fill="none" />
|
||||
</g>
|
||||
</g>
|
||||
|
||||
@@ -183,12 +183,9 @@
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">fall off screen after crash</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">make ship a helicopter</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">use paths for walls</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">no walls</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">stop reading data from elements</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">ability to land</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">limited fuel</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">additional cannon firing modes</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">only light up the collided wall</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">keep ship position at 0,0 actual</li>
|
||||
<li xmlns="http://www.w3.org/1999/xhtml">only start on movement not just any keypress</li>
|
||||
</ul>
|
||||
@@ -520,6 +517,7 @@ function fireBullet(position, velocity) {
|
||||
lineEl.setAttribute('y2', bulletDestination.y);
|
||||
|
||||
const startTime = performance.now()
|
||||
// console.time('bulletCollision');
|
||||
|
||||
let pt, hit;
|
||||
for (let i = 0; i <= lineEl.getTotalLength(); i++) {
|
||||
@@ -529,12 +527,11 @@ function fireBullet(position, velocity) {
|
||||
}
|
||||
|
||||
const endTime = performance.now()
|
||||
|
||||
// console.timeEnd('bulletCollision');
|
||||
console.log(`Took ${endTime - startTime} milliseconds`)
|
||||
|
||||
// lineEl.addEventListener('transitionrun', e => console.log('transitionrun', e));
|
||||
// lineEl.addEventListener('transitionstart', e => console.log('transitionstart', e));
|
||||
// lineEl.addEventListener('transitionend', e => console.log('transitionend', e));
|
||||
lineEl.addEventListener('transitionend', e => e.target.remove());
|
||||
|
||||
if (hit) {
|
||||
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user