subway gates

subway
  start in an empty station
  station exits are blocked by a gate that opens when you press a button
  level exit spawns after you clear 4 stations
  added 2 new stations (7 possible stations)

laser-bots lasers wiggle as it aims at the target
  this is a nerf to iridescence and it looks cool

bug fixes
This commit is contained in:
landgreen
2023-06-24 11:34:47 -07:00
parent 1d4b0c4430
commit 4415942b94
6 changed files with 485 additions and 138 deletions

View File

@@ -5500,21 +5500,10 @@ const b = {
const push = 0.4
const reflectivity = 1 - 1 / (tech.laserReflections * 3)
let damage = m.dmgScale * this.laserDamage * tech.laserDamage
let best = {
x: 1,
y: 1,
dist2: Infinity,
who: null,
v1: 1,
v2: 1
};
const path = [{
x: this.vertices[0].x,
y: this.vertices[0].y
}, {
x: this.lockedOn.position.x,
y: this.lockedOn.position.y
}];
//make the laser wiggle as it aims at the target
let best = { x: 1, y: 1, dist2: Infinity, who: null, v1: 1, v2: 1 };
const perp2 = Vector.mult(Vector.rotate({ x: 1, y: 0 }, m.angle + Math.PI / 2), 0.6 * this.lockedOn.radius * Math.sin(simulation.cycle / this.lookFrequency))
const path = [{ x: this.vertices[0].x, y: this.vertices[0].y }, Vector.add(this.lockedOn.position, perp2)];
const vertexCollision = function (v1, v1End, domain) {
for (let i = 0; i < domain.length; ++i) {