downpour and buttonbutton community maps

community map downpour by DesBoot
community map buttonbutton by ||Destabilized E||

rounded borders on no-image mode selection cards
foam gun has some recoil
new superball gun image

bug fixes
This commit is contained in:
landgreen
2023-03-24 19:50:45 -07:00
parent e2bf9aae66
commit 3ea8bfd638
9 changed files with 70 additions and 26 deletions

View File

@@ -7143,6 +7143,7 @@ const b = {
have: false,
charge: 0,
isDischarge: false,
knockBack: 0.001,
chooseFireMethod() {
if (tech.isFoamPressure) {
this.do = this.doCharges
@@ -7170,6 +7171,9 @@ const b = {
y: m.pos.y + 30 * Math.sin(m.angle)
}
b.foam(position, Vector.rotate(velocity, spread), radius)
//knock back player
player.force.x -= this.knockBack * velocity.x
player.force.y -= this.knockBack * velocity.y
m.fireCDcycle = m.cycle + Math.floor(1.5 * b.fireCDscale);
},
doCharges() {
@@ -7196,6 +7200,9 @@ const b = {
y: m.pos.y + 30 * Math.sin(m.angle)
}
b.foam(position, Vector.rotate(velocity, spread), radius)
//knock back player
player.force.x -= this.knockBack * velocity.x
player.force.y -= this.knockBack * velocity.y
this.charge -= 0.75
m.fireCDcycle = m.cycle + 2; //disable firing and adding more charge until empty
} else if (!input.fire) {
@@ -7241,6 +7248,9 @@ const b = {
// } else {
// }
b.foam(position, Vector.rotate(velocity, spread), radius)
//knock back player
player.force.x -= this.knockBack * velocity.x
player.force.y -= this.knockBack * velocity.y
m.fireCDcycle = m.cycle + Math.floor(1.5 * b.fireCDscale);
this.charge += 1 + tech.isCapacitor
},