Without WonderWitch Lib その4

SCR1カラーデータ4色に、SPRITEカラーデータ3色を重ねて表示してみます。

http://yun.cup.com/wwitch10.html

wwc_set_color_mode(COLOR_MODE_4COLOR);
display_control(DCM_SPR | DCM_SCR1);
/* SCR1 */
wwc_palette_set_color(0, 0, 0x0000);	/* black */
wwc_palette_set_color(0, 1, 0x00ff);	/* cyan */
wwc_palette_set_color(0, 2, 0x0f00);	/* red */
wwc_palette_set_color(0, 3, 0x0fff);	/* white */
/* SPR */
wwc_palette_set_color(12, 1, 0x000f);	/* blue */
wwc_palette_set_color(12, 2, 0x00f0);	/* green */
wwc_palette_set_color(12, 3, 0x0ff0);	/* yellow */

font_set_colordata(1, 4, bmp_c);

sprite_set_range(1, 3);
sprite_set_char(1, 1 + 8192 + 2048);
sprite_set_location(1, 0, 0);
sprite_set_char(2, 2 + 8192 + 2048);
sprite_set_location(2, 8, 8);
sprite_set_char(3, 3 + 8192 + 2048);
sprite_set_location(3, 16, 16);
};

f:id:tanam:20171124082318j:image:w360