How to decode the Nintendo logo from gameboy?

后端 未结 3 1547
眼角桃花
眼角桃花 2021-02-19 06:22

I\'ve tried to decode the following bitmap using the background pallete scheme described at http://imrannazar.com/GameBoy-Emulation-in-JavaScript:-Graphics

<
3条回答
  •  有刺的猬
    2021-02-19 07:00

    There is no compression or encrytion at all. The logo is binary encoded: 1 is black and 0 is white/green/whatever you want to call the background color of the game boy).

    Simply put the hexadecimal string in the correct order and then convert the hex chars to binary:

    Hexadecimal:

    C 6 C 0 0 0 0 0 0 1 8 0
    E 6 C 0 3 0 0 0 0 1 8 0
    E 6 0 0 7 8 0 0 0 1 8 0
    D 6 D B 3 3 C D 8 F 9 E
    
    D 6 D D B 6 6 E D 9 B 3
    C E D 9 B 7 E C D 9 B 3
    C E D 9 B 6 0 C D 9 B 3
    C 6 D 9 B 3 E C C F 9 E
    

    Binary:

    1100 0110 1100 0000 0000 0000 0000 0000 0000 0001 1000 0000
    1110 0110 1100 0000 0011 0000 0000 0000 0000 0001 1000 0000
    1110 0110 0000 0000 0111 1000 0000 0000 0000 0001 1000 0000
    1101 0110 1101 1011 0011 0011 1100 1101 1000 1111 1001 1110
    1101 0110 1101 1101 1011 0110 0110 1110 1101 1001 1011 0011
    1100 1110 1101 1001 1011 0111 1110 1100 1101 1001 1011 0011
    1100 1110 1101 1001 1011 0110 0000 1100 1101 1001 1011 0011
    1100 0110 1101 1001 1011 0011 1110 1100 1100 1111 1001 1110
    

    There you go. Your Nintendo logo (w/o 0 and spaces):

    11   11 11                             11       
    111  11 11        11                   11       
    111  11          1111                  11       
    11 1 11 11 11 11  11  1111  11 11   11111  1111 
    11 1 11 11 111 11 11 11  11 111 11 11  11 11  11
    11  111 11 11  11 11 111111 11  11 11  11 11  11
    11  111 11 11  11 11 11     11  11 11  11 11  11
    11   11 11 11  11 11  11111 11  11  11111  1111 
    

    Using instead of 1:

    ██   ██ ██                             ██       
    ███  ██ ██        ██                   ██       
    ███  ██          ████                  ██       
    ██ █ ██ ██ ██ ██  ██  ████  ██ ██   █████  ████ 
    ██ █ ██ ██ ███ ██ ██ ██  ██ ███ ██ ██  ██ ██  ██
    ██  ███ ██ ██  ██ ██ ██████ ██  ██ ██  ██ ██  ██
    ██  ███ ██ ██  ██ ██ ██     ██  ██ ██  ██ ██  ██
    ██   ██ ██ ██  ██ ██  █████ ██  ██  █████  ████ 
    

提交回复
热议问题