diff --git a/index.html b/index.html index ea9ceadee1a54e4eb9164c46f54202dc430d1d69..e539e9f517b777835637849439f534c17b7af5b5 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@ <label> - <span>Pong mode</span> + <span>Pong mode; not playable :(</span> <input id="pong-mode" type="checkbox"> </label> diff --git a/js/Engine.js b/js/Engine.js index ddac21b3444916a4facb29d689e278d5407e4d81..17963318815bb63857e0e73bb4daa6ee0dd13fb7 100644 --- a/js/Engine.js +++ b/js/Engine.js @@ -326,9 +326,10 @@ export class Ball extends CollisionBox { if (this.collisionPartners.some(partner => this.collidesWithFuture(partner))) { // leide // console.log("aua", this.$auas) - const $aua = this.$auas[Math.floor(this.$auas.length * Math.random())]; - $aua.currentTime = 0; - $aua.play(); + // const $aua = this.$auas[Math.floor(this.$auas.length * Math.random())]; + // $aua.currentTime = 0; + // $aua.play(); + console.log("aua") } this.spd = spdChangeMatrix.leftMultiplyV(this.spd); diff --git a/js/script.js b/js/script.js index 41d0a05fb436484107f98e00e4504521770fd83b..f9a6289748196ace950aedd55e3418af6e9760b5 100644 --- a/js/script.js +++ b/js/script.js @@ -416,7 +416,7 @@ const ball = new Ball( new Vector(5, 5) ); -ball.$auas = document.querySelectorAll(".aua"); +// ball.$auas = document.querySelectorAll(".aua"); ball.collisionPartners = [...boundingBoxes, ...bats]; ball.resetCollisionPartners = [boundingBoxes[0], boundingBoxes[0]];