Commit be4d267f authored by Matthias's avatar Matthias
Browse files

fixed aua error, added notice that pong is not playable without a lidar :(

parent 1ef69512
......@@ -31,7 +31,7 @@
<label>
<span>Pong mode</span>
<span>Pong mode; not playable :(</span>
<input id="pong-mode" type="checkbox">
</label>
......
......@@ -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);
......
......@@ -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]];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment