displayMessage(sMessage) {
        const canvas = this.screen.surface;
        const context = canvas.getContext('2d');
        const PADDING = 8;
        CanvasHelper.text(
            canvas,
            sMessage,
            PADDING,
            PADDING,
            {
                fill: 'red'
            },
            canvas.width - 2 * PADDING,
            12);
    }
/**
     * Displays a message on a canvas, usually to notify an error during the initial phase of game construction.
     * @param sMessage {string};
     */
Displays a message on a canvas, usually to notify an error during the initial phase of game construction.
@param sMessage {string}.
Displays a message on a canvas usually to notify an error during the initial phase of game construction . @param sMessage { string } .
displayMessage(sMessage) {
        const canvas = this.screen.surface;
        const context = canvas.getContext('2d');
        const PADDING = 8;
        CanvasHelper.text(
            canvas,
            sMessage,
            PADDING,
            PADDING,
            {
                fill: 'red'
            },
            canvas.width - 2 * PADDING,
            12);
    }
displayMessage ( sMessage ) { const canvas = this . screen . surface ; const context = canvas . getContext ( '2d' ) ; const PADDING = 8 ; CanvasHelper . text ( canvas , sMessage , PADDING , PADDING , { fill : 'red' } , canvas . width - 2 * PADDING , 12 ) ; }
Displays a message on a canvas, usually to notify an error during the initial phase of game construction.
Displays a message on a canvas usually to notify an error during the initial phase of game construction .