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

    Base class for weapon powerups to reduce duplication.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    age: number = 0

    time (in milliseconds) for how long the object already exists in the game

    attractsBots: boolean = false

    Whether bots are attracted to it.

    game: Game

    The game instance.

    image: HTMLImageElement

    optional image rendering the powerup

    maxAge?: number

    optional duration in milliseconds for how long the object should still exist in the game

    radius: number = 40

    Collision radius.

    tile?: Tile
    width: number = 0
    x: number = 0
    y: number = 0

    Methods