Skip to main content

DrawCharacter

Callable

  • DrawCharacter(C: Character, X: number, Y: number, Zoom: number, IsHeightResizeAllowed?: boolean, DrawCanvas?: CanvasRenderingContext2D): void

  • Refreshes the character if not all images are loaded and draw the character canvas on the main game screen


    Parameters

    • C: Character

      Character to draw

    • X: number

      Position of the character on the X axis

    • Y: number

      Position of the character on the Y axis

    • Zoom: number

      Zoom factor

    • optionalIsHeightResizeAllowed: boolean

      Whether or not the settings allow for the height modifier to be applied

    • optionalDrawCanvas: CanvasRenderingContext2D

      The canvas to draw to; If undefined MainCanvas is used

    Returns void

    • Nothing