pilot wave is a bit slower

spammable methods of energy generation no longer work while immune to damage
  rail-gun, flip-flop, dynamo-bots, ice-IX, energy siphon

pilot wave follows the mouse a bit slower
  (I think this is actually a buff, because blocks stay in the field better)
a newly clicked pilot wave now begins at the player, not the mouse
  (this is just because it looks cool)

tech: many worlds, now only spawns 1 tech
  (use to spawn a heal, ammo, research too)
This commit is contained in:
landgreen
2021-05-14 05:16:47 -07:00
parent 39c9b08b2e
commit 33ed7dddfa
8 changed files with 35 additions and 39 deletions

View File

@@ -2238,10 +2238,14 @@ const m = {
if (!m.fieldOn) { // if field was off, and it starting up, teleport to new mouse location
m.fieldOn = true;
m.fieldPosition = { //smooth the mouse position
x: simulation.mouseInGame.x,
y: simulation.mouseInGame.y
m.fieldPosition = { //smooth the mouse position, set to starting at player
x: m.pos.x,
y: m.pos.y
}
// m.fieldPosition = { //smooth the mouse position
// x: simulation.mouseInGame.x,
// y: simulation.mouseInGame.y
// }
m.lastFieldPosition = { //used to find velocity of field changes
x: m.fieldPosition.x,
y: m.fieldPosition.y
@@ -2251,7 +2255,7 @@ const m = {
x: m.fieldPosition.x,
y: m.fieldPosition.y
}
const smooth = isInMap ? 0.985 : 0.96;
const smooth = isInMap ? 0.985 : 0.97;
m.fieldPosition = { //smooth the mouse position
x: m.fieldPosition.x * smooth + simulation.mouseInGame.x * (1 - smooth),
y: m.fieldPosition.y * smooth + simulation.mouseInGame.y * (1 - smooth),