map: factory
  this is completely unbalanced, so let me know if what rough edges need to be sanded
  found on seed 47086 level 6

tech: ternary - +40 damage if any gun has ammo divisible by 3

level element: transport - horizontal moving platforms
level element: mover - stationary platform that pushes the player horizontally
  to see examples of transport and mover look in level.testing()
This commit is contained in:
landgreen
2023-03-04 09:37:11 -08:00
parent f9849d4222
commit d00a94a22b
10 changed files with 487 additions and 269 deletions

View File

@@ -562,9 +562,9 @@ const mobs = {
};
vertexCollision(this.position, look, map);
vertexCollision(this.position, look, body);
if (!m.isCloak) vertexCollision(this.position, look, [playerBody, playerHead]);
if (!m.isCloak) vertexCollision(this.position, look, [player]);
// hitting player
if (best.who === playerBody || best.who === playerHead) {
if (best.who === player) {
if (m.immuneCycle < m.cycle) {
const dmg = 0.0014 * simulation.dmgScale;
m.damage(dmg);