Example #1
0
void showColors(settings* sets) {
	const unsigned short nb_p[2] = {0x0000, 0xffff};
	
	const unsigned char Colors[112] = {
		0x00,0x3f,0xff,0xff,0xff,0xff,0xfc,
		0x00,0x3f,0xff,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xff,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xff,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xfc,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xfc,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xfc,0xff,0xff,0xff,0xfc,
		0x3f,0xff,0xfc,0xff,0xff,0xff,0xfc,
		0x3f,0xf0,0x0c,0xc0,0x30,0x0c,0x00,
		0x3f,0xf0,0x0c,0xc0,0x30,0x0c,0x00,
		0x3f,0xf3,0xcc,0xcf,0x33,0xcc,0x3c,
		0x3f,0xf3,0xcc,0xcf,0x33,0xcc,0x3c,
		0x3f,0xf3,0xcc,0xcf,0x33,0xff,0xc0,
		0x3f,0xf3,0xcc,0xcf,0x33,0xff,0xc0,
		0x00,0x30,0x0c,0xc0,0x33,0xfc,0x00,
		0x00,0x30,0x0c,0xc0,0x33,0xfc,0x00
	};//54*16
	CopySpriteNbit(Colors, 0,0, 54,16, nb_p, 1);
	for(int i =0; i< sets->col_num; i++) {
		Rectangle(18 + 20*i, 18, 32 + 20*i, 32, 1, COLOR_BLACK);
		Filled_Rectangle(20 + 20*i, 20, 30 + 20*i, 30, sets->cells_col[i]);
	}
}
Example #2
0
void drawMenu(int decal) {
	const unsigned short Menu_palette[2] = {0x0000, 0xffff};

	const unsigned char Menu[480] = {
		0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
		0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
		0x83,0x05,0xd0,0xe3,0x74,0x18,0xc1,0x0e,0x82,0xf8,0x20,0x83,0x00,0x00,0x00,0x02,0x82,0x18,0x20,0x82,0xe8,0x3f,0xff,0x02,0x82,0x0b,0xb8,0x2e,0xbe,0x08,0x39,0x26,0x82,0x0b,0xa0,0xfa,0xf8,0x20,0x87,0xfe,0x41,0x04,0x10,0x41,0x74,0x10,0x70,0x03,
		0xbb,0x74,0xd7,0x4d,0x37,0x77,0xdf,0x76,0xbe,0xfb,0xee,0xbb,0x7f,0xff,0xe6,0xe2,0xbe,0xee,0xfb,0xee,0x6b,0xff,0xff,0x82,0xbf,0xb9,0x3b,0xae,0xbe,0xfb,0xf9,0x26,0xbe,0xeb,0xaf,0xf6,0xfb,0xae,0xbb,0x86,0x5f,0x7f,0x7d,0xf7,0x35,0xf7,0xef,0xfd,
		0xbb,0x74,0xd7,0x5d,0x27,0x7b,0xdf,0x76,0xbe,0xfb,0xee,0xbb,0x7f,0xff,0xdf,0x6a,0xbe,0xee,0xfb,0xee,0xab,0xff,0xff,0xc2,0xbf,0xba,0xbb,0xae,0xbe,0xfb,0xff,0xfe,0xbe,0xeb,0xaf,0xf6,0xfb,0xae,0xbb,0xba,0x5f,0x7f,0x7d,0xf7,0x55,0xf7,0xf0,0x03,
		0xbb,0x35,0x57,0x5d,0x57,0x78,0xef,0x66,0xbe,0xf8,0x6e,0x83,0x7f,0xfd,0x8d,0x82,0x86,0xee,0xfb,0xee,0xcb,0xff,0xff,0x82,0x83,0xbb,0xb8,0x2e,0xbe,0x18,0x3f,0xe6,0x82,0x0b,0xa1,0xee,0xfb,0xa0,0xbb,0x82,0x41,0x1f,0x7d,0xf7,0x65,0xf0,0x7f,0xff,
		0xa7,0x45,0x57,0x5d,0x76,0xff,0x67,0x0e,0xbe,0xfb,0xe0,0xb7,0x7f,0xfc,0x1c,0xc2,0xbe,0xee,0xfb,0xee,0xeb,0x3f,0xff,0x12,0xfb,0xbb,0xbb,0x6e,0xbe,0xff,0xbf,0xe6,0xfa,0xeb,0xaf,0xee,0xfb,0xae,0xbb,0x82,0x7d,0x7f,0x7d,0xf7,0x75,0x1f,0x70,0x1b,
		0x97,0x75,0x97,0x5d,0x76,0xfe,0xef,0x6e,0xbe,0xfb,0xee,0xb7,0x7f,0xfe,0x94,0x02,0xbe,0xee,0xfb,0xee,0xeb,0xbf,0xfe,0x3a,0xfb,0xbb,0xbb,0xae,0xbe,0xff,0xbf,0xfe,0xfa,0xeb,0xaf,0xde,0xfb,0xae,0xbb,0x82,0x7d,0x7f,0x7d,0xf7,0x75,0xdf,0x6f,0xe1,
		0xbb,0x75,0x96,0x45,0x76,0xfe,0x5f,0x76,0xbe,0xfb,0xee,0xbb,0x7f,0xfe,0x90,0x02,0xbe,0xee,0xfb,0xee,0xeb,0xbf,0xfc,0x7e,0xfb,0xbb,0xbb,0xae,0xbe,0xff,0xbf,0x3e,0xfa,0xed,0x6f,0xde,0xfb,0xae,0xbb,0x82,0x7d,0x7f,0x7d,0xf7,0x75,0xdf,0x70,0x1b,
		0xbb,0x75,0xd1,0xfb,0x74,0x10,0xc1,0x76,0x82,0x08,0x2e,0xbb,0x00,0x00,0x00,0x02,0x82,0x18,0x3b,0x82,0xe8,0x3f,0xf8,0xfe,0x82,0x0b,0xbb,0xa0,0x82,0x08,0x3f,0x3e,0x82,0xee,0xe0,0xbe,0x08,0x2e,0x87,0xfe,0x41,0x07,0x7d,0xc1,0x74,0x10,0x7f,0xff
	};
	
	CopySpriteNbit(Menu, 0, LCD_HEIGHT_PX-decal, 384, 10, Menu_palette, 1);

	
}
Example #3
0
void draw_cart(int x, int y, int frame) {
	CopySpriteNbit(cart[frame], x, y, 70, 22, cart_palette, 1);
}
Example #4
0
void GoL_showRules(settings* sets) {
	const unsigned short nb_p[2] = {0x0000, 0xffff};

	const unsigned char Alive[96] = {
			0x00,0x0f,0xff,0xff,0xff,0xff,
			0x00,0x0f,0xff,0xff,0xff,0xff,
			0x3f,0xcf,0xff,0xff,0xff,0xc3,
			0x3f,0xcf,0xff,0xff,0xff,0xc3,
			0x3f,0xcc,0xff,0xff,0xff,0xc3,
			0x3f,0xcc,0xff,0xff,0xff,0xc3,
			0x3f,0xcc,0xff,0xff,0xff,0xff,
			0x3f,0xcc,0xff,0xff,0xff,0xff,
			0x00,0x0c,0xcc,0xf3,0x00,0xff,
			0x00,0x0c,0xcc,0xf3,0x00,0xff,
			0x3f,0xcc,0xfc,0xf3,0x0f,0xc3,
			0x3f,0xcc,0xfc,0xf3,0x0f,0xc3,
			0x3f,0xcc,0xcc,0xf3,0x3f,0xc3,
			0x3f,0xcc,0xcc,0xf3,0x3f,0xc3,
			0x3f,0xcc,0xcf,0x0f,0x00,0xff,
			0x3f,0xcc,0xcf,0x0f,0x00,0xff
		};//48*16

	const unsigned char Surv[96] = {
		0x00,0x0f,0xff,0xff,0xff,0xff,
		0x00,0x0f,0xff,0xff,0xff,0xff,
		0x3f,0xff,0xff,0xff,0xff,0xf0,
		0x3f,0xff,0xff,0xff,0xff,0xf0,
		0x3f,0xff,0xff,0xff,0xff,0xf0,
		0x3f,0xff,0xff,0xff,0xff,0xf0,
		0x00,0x0f,0xff,0xff,0xff,0xff,
		0x00,0x0f,0xff,0xff,0xff,0xff,
		0xff,0xcc,0xf3,0x00,0xcf,0x3f,
		0xff,0xcc,0xf3,0x00,0xcf,0x3f,
		0xff,0xcc,0xf3,0x3c,0xcf,0x30,
		0xff,0xcc,0xf3,0x3c,0xcf,0x30,
		0xff,0xcc,0xf3,0x3f,0xcf,0x30,
		0xff,0xcc,0xf3,0x3f,0xcf,0x30,
		0x00,0x0c,0x03,0x3f,0xf0,0xff,
		0x00,0x0c,0x03,0x3f,0xf0,0xff
	};//48*16
	CopySpriteNbit(Alive, 0,74, 48, 16, nb_p,1);
		CopySpriteNbit(Surv, 0,146, 48, 16, nb_p,1);

	for(int i = 0; i<9; i++) {
		unsigned char str[] = "\xE7\x2F";//little num chars
		str[1] = 0x30+i;
		unsigned char check[] = "\xE6\xA5"; //Check box

		locate_OS(i+4,3);
		check[1] = sets->gol_neighbour_num_survive[i]? 0xA9 : 0xA5;
		Print_OS(check, TEXT_MODE_NORMAL, 0);
		locate_OS(i+4,4);
		Print_OS(str, TEXT_MODE_NORMAL, 0);
	
		locate_OS(i+4,6);
		check[1] = sets->gol_neighbour_num_born[i]? 0xA9 : 0xA5;
		Print_OS(check, TEXT_MODE_NORMAL, 0);
		locate_OS(i+4,7);
		Print_OS(str, TEXT_MODE_NORMAL, 0);
	}
	showColors(sets);
}