clik-engine API
    Preparing search index...

    Class HazardPlacer

    Places environmental hazards in generated levels. Respects spacing rules to avoid unfair clusters.

    Usage:

    const placer = new HazardPlacer({
    hazards: [
    { type: 'spike_trap', minSpacing: 3 },
    { type: 'fire_pit', minSpacing: 5 },
    ],
    });
    const hazards = placer.place(level, difficulty);
    Index

    Constructors

    Methods

    Constructors

    Methods