feat(traps): activation VFX/SFX, explosion effect, and help section

Wire mimic/pit/arrow/laser media on activate, poison/explosion via effects, and document the scene editor and traps in Instructions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-25 12:35:22 +08:00
parent 02d73ddf81
commit fed5674468
36 changed files with 697 additions and 34 deletions
+4 -2
View File
@@ -52,7 +52,8 @@ export function minDistSqEffectToPoint(inst: EffectInstance, p: { x: number; y:
case 'scorch':
case 'ice':
case 'shadow':
case 'poisonCloud': {
case 'poisonCloud':
case 'explosion': {
const dx = inst.at.x - p.x;
const dy = inst.at.y - p.y;
return dx * dx + dy * dy;
@@ -67,7 +68,8 @@ function eraseHitThresholdSq(inst: EffectInstance, toolRadiusN: number): number
inst.type === 'scorch' ||
inst.type === 'ice' ||
inst.type === 'shadow' ||
inst.type === 'poisonCloud'
inst.type === 'poisonCloud' ||
inst.type === 'explosion'
) {
const r = toolRadiusN + inst.radiusN;
return r * r;