jetlag2d
    Preparing search index...

    Class ConsoleDevice

    ConsoleDevice provides a clean and generic tool for printing debug messages. The key benefit relative to using console.log directly is ConsoleDevice disables all output when cfg.hitBoxes is false, which is nice when releasing a game.

    Index
    • Display a message to the console if we're not in debug mode

      Parameters

      • msg: string | number

      Returns void