(from, amount)
| 205 | } |
| 206 | |
| 207 | _receive_damage(from, amount) { |
| 208 | if (this._dead) { |
| 209 | return; |
| 210 | } |
| 211 | this._health -= amount; |
| 212 | if (this._health <= 0) { |
| 213 | this._kill(); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | _play_sound(sound) { |
| 218 | let volume = clamp(scale(vec3_dist(this.p, r_camera), 64, 1200, 1, 0),0,1), |
no test coverage detected