foam is black, wave beam bug fixes

This commit is contained in:
landgreen
2020-02-13 03:54:41 -08:00
parent fddcfc8aed
commit 531d30bbb4
3 changed files with 9 additions and 7 deletions

View File

@@ -1977,10 +1977,10 @@ const b = {
},
onEnd() {},
do() {
ctx.beginPath() //draw white circle
ctx.arc(this.position.x, this.position.y, this.radius * 0.97 - 1.6, 0, 2 * Math.PI);
ctx.fillStyle = "#fff"
ctx.fill()
// ctx.beginPath() //draw white circle
// ctx.arc(this.position.x, this.position.y, this.radius * 0.97 - 1.6, 0, 2 * Math.PI);
// ctx.fillStyle = "#fff"
// ctx.fill()
if (!mech.isBodiesAsleep) { //if time dilation isn't active
this.force.y += this.mass * 0.00006; //gravity

View File

@@ -14,9 +14,11 @@ const level = {
start() {
if (level.levelsCleared === 0) {
// level.difficultyIncrease(5)
b.giveGuns("wave beam")
// b.giveGuns("foam")
// mech.setField("phase decoherence field")
// b.giveMod("mass-energy equivalence");
// for (let i = 0; i < 9; i++) {
// b.giveMod("auto-loading heuristics");
// }
level.intro(); //starting level
// level.testingMap();

View File

@@ -210,7 +210,7 @@ const mech = {
mech.collisionImmune = mech.cycle + b.modCollisionImmuneCycles; //player is immune to collision damage for 30 cycles
}
if (b.isModStomp) {
const len = Math.min(20, (momentum - 110) * 0.07)
const len = Math.min(25, (momentum - 110) * 0.1)
for (let i = 0; i < len; i++) {
b.spore(player) //spawn drone
}