CTFTNKS Project Documentation - v1.3.0
    Preparing search index...

    Function generateCloud

    • Creates a cluster of smoke particles (Cloud).

      Parameters

      • game: Game

        The game instance.

      • x: number

        X coordinate.

      • y: number

        Y coordinate.

      • n: number = 4

        Number of particles.

      • radius: number = 20

        Radius of the cloud.

      • rspeed: number = 0.3

        Shrink speed.

      • color: string = ""

        Color override.

      Returns void