From 76c591ef6153c1426ac4a36dbf49e963252c7474 Mon Sep 17 00:00:00 2001 From: landgreen Date: Mon, 3 May 2021 06:14:58 -0700 Subject: [PATCH] n-gon --- js/bullet.js | 2 +- js/level.js | 2 +- js/tech.js | 6 +++--- todo.txt | 3 --- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/js/bullet.js b/js/bullet.js index 1cc7aaa..48fa81e 100644 --- a/js/bullet.js +++ b/js/bullet.js @@ -3631,7 +3631,7 @@ const b = { bullet[me] = Bodies.polygon(m.pos.x + 25 * Math.cos(m.angle), m.pos.y + 25 * Math.sin(m.angle), 7, 3.5, { angle: m.angle, cycle: -0.5, - endCycle: simulation.cycle + Math.floor((tech.waveReflections ? Infinity : 160 * tech.wavePacketLength) * tech.isBulletsLastLonger), // - this.packetCounter + tech.wavePacketLength, //- this.packetCounter + this.packetLength makes the entire packet go away at the same time + endCycle: simulation.cycle + Math.floor((tech.waveReflections ? Infinity : 4.3 * tech.wavePacketLength) * tech.isBulletsLastLonger), // - this.packetCounter + tech.wavePacketLength, //- this.packetCounter + this.packetLength makes the entire packet go away at the same time inertia: Infinity, frictionAir: 0, slow: 0, diff --git a/js/level.js b/js/level.js index 7c82697..61d4e75 100644 --- a/js/level.js +++ b/js/level.js @@ -21,7 +21,7 @@ const level = { // tech.isExplodeRadio = true // for (let i = 0; i < 1; i++) tech.giveTech("amplitude") // tech.giveTech("aerogel") - // for (let i = 0; i < 3; i++) tech.giveTech("wavelength") + // for (let i = 0; i < 1; i++) tech.giveTech("wavelength") // tech.giveTech("phase velocity") // tech.giveTech("imaginary") // for (let i = 0; i < 2; i++) tech.giveTech("least action") diff --git a/js/tech.js b/js/tech.js index 871644e..0d5f104 100644 --- a/js/tech.js +++ b/js/tech.js @@ -3650,7 +3650,7 @@ }, { name: "wavelength", - description: "wavelet length and duration
is increased by 33%", // description: "holding fire allows the wave beam to emits a second packet
at zero ammo cost", + description: "wavelet length and duration
is increased by 50%", // description: "holding fire allows the wave beam to emits a second packet
at zero ammo cost", isGunTech: true, maxCount: 9, count: 0, @@ -3660,8 +3660,8 @@ }, requires: "wave beam", effect() { - tech.wavePacketLength *= 1.33 //if you change this to not be 36 update /36 in wave .dmg - tech.wavePacketFrequency *= 0.752 + tech.wavePacketLength *= 1.5 //if you change this to not be 36 update /36 in wave .dmg + tech.wavePacketFrequency *= 0.66666 tech.waveFrequency *= 0.9 }, remove() { diff --git a/todo.txt b/todo.txt index 2a2fff2..c00b821 100644 --- a/todo.txt +++ b/todo.txt @@ -1,6 +1,5 @@ ******************************************************** NEXT PATCH ******************************************************** -tech: wavelength - wavelets are longer and have more range ******************************************************** BUGS ******************************************************** @@ -34,8 +33,6 @@ is there a way to check if the player is stuck inside the map or block ******************************************************** TODO ******************************************************** -wavelength should do no damage, but give much more length - wave tech: dispersion - add noise and damage to waves wave tech: chirp - amplitude increases with time