Function char

  • Draw a pixel art.

    You can define pixel arts (6x6 dots) of characters with characters array. Each letter represents a pixel color ( l: black, r: red, g: green, b: blue, y: yellow, p: purple, c: cyan, L: light_black, R: light_red, G: light_green, B: light_blue, Y: light_yellow, P: light_purple, C: light_cyan ).

    characters = [
    `
    r rr
    rrrrrr
    grr
    grr
    rrrrrr
    r rr
    `,

    Pixel arts are assigned from 'a'. char("a", 0, 0) draws the character defined by the first element of the characters array.

    Returns

    Information about objects that collided during drawing.

    Parameters

    Returns Collision

Generated using TypeDoc