Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Rail_normal width=8, height=4 //
- char Rail_normal_1[] = {255,234,191,255};
- char Rail_normal_2[] = {255,181,191,255};
- // Rail_end_square width=8, height=4 //
- char Rail_end_square_1[] = {255,235,191,255};
- char Rail_end_square_2[] = {255,183,191,255};
- // Rail_end_triangle width=8, height=4 //
- char Rail_end_triangle_1[] = {255,235,190,252};
- char Rail_end_triangle_2[] = {255,183,190,252};
- // Under_rail width=3, height=4 //
- char Under_rail_1[] = {64,160,64,224};
- char Under_rail_2[] = {64,160,64,224};
- // Flags width=8, height=12 //
- char Flags_1[] = {224,240,246,247,55,19,17,17,17,17,17,17};
- char Flags_2[] = {224,240,246,247,55,19,17,17,17,17,17,17};
- // Pillar_normal width=6, height=8 //
- char Pillar_normal_1[] = {252,180,204,180,180,204,180,252};
- char Pillar_normal_2[] = {204,180,204,180,180,204,180,204};
- // Camera width=9, height=12 //
- char Camera_1[] = {30,0,127,0,191,0,190,0,121,0,8,128,28,128,29,0,10,0,12,0,8,0,8,0};
- char Camera_2[] = {30,0,127,0,191,0,190,0,121,0,8,128,28,128,29,0,10,0,12,0,8,0,8,0};
- // Pillar_left width=6, height=32 //
- char Pillar_left_1[] = {252,184,200,184,176,208,176,240,240,160,224,160,160,224,160,224,224,160,224,160,160,224,160,240,240,176,208,176,184,200,184,252};
- char Pillar_left_2[] = {204,184,200,184,176,208,176,208,240,160,224,160,160,224,160,224,224,160,224,160,160,224,160,240,208,176,208,176,184,200,184,204};
- // Pillar_right width=6, height=32 //
- char Pillar_right_1[] = {252,116,76,116,52,44,52,60,60,20,28,20,20,28,20,28,28,20,28,20,20,28,20,60,60,52,44,52,116,76,116,252};
- char Pillar_right_2[] = {204,116,76,116,52,44,52,44,60,20,28,20,20,28,20,28,28,20,28,20,20,28,20,60,44,52,44,52,116,76,116,204};
- // Rail_normal_night width=8, height=4 //
- char Rail_normal_night_1[] = {255,224,191,255};
- char Rail_normal_night_2[] = {255,181,191,255};
- // Rail_end_square_night width=8, height=4 //
- char Rail_end_square_night_1[] = {255,227,191,255};
- char Rail_end_square_night_2[] = {255,183,191,255};
- // Rail_end_triangle_night width=8, height=4 //
- char Rail_end_triangle_night_1[] = {255,227,190,252};
- char Rail_end_triangle_night_2[] = {255,183,190,252};
- // Pillar_mask width=6, height=8 //
- char Pillar_mask_1[] = {0,72,48,72,72,48,72,0};
- char Pillar_mask_2[] = {0,72,48,72,72,48,72,0};
- // Camera_mask width=9, height=12 //
- char Camera_mask_1[] = {225,128,128,128,0,128,1,128,134,128,247,0,227,0,226,128,245,128,243,128,247,128,247,128};
- char Camera_mask_2[] = {225,128,128,128,0,128,1,128,134,128,247,0,227,0,226,128,245,128,243,128,247,128,247,128};
- // Rail_end_triangle_mask width=8, height=4 //
- char Rail_end_triangle_mask_1[] = {0,0,1,3};
- char Rail_end_triangle_mask_2[] = {0,0,1,3};
- // Crane width=66, height=16 //
- char Crane_1[] = {0,0,12,0,0,0,0,0,0,0,0,63,128,0,0,0,0,0,0,0,237,96,0,0,0,0,0,0,3,140,220,0,0,0,0,0,0,13,14,35,128,0,0,0,0,0,18,14,24,112,0,0,0,0,0,108,14,6,12,0,0,63,192,1,144,13,1,3,128,127,213,64,6,32,11,0,193,255,170,170,192,24,192,10,131,255,85,85,127,192,97,0,15,254,170,170,255,224,64,254,63,255,213,85,255,128,1,128,255,234,175,171,254,0,1,254,0,245,85,95,252,133,255,254,0,0,106,191,255,193,252,0,0,0,0,127,192,15,190,72,0,0,0,0};
- char Crane_2[] = {0,0,12,0,0,0,0,0,0,0,0,63,128,0,0,0,0,0,0,0,237,96,0,0,0,0,0,0,3,140,220,0,0,0,0,0,0,13,14,35,128,0,0,0,0,0,18,14,24,112,0,0,0,0,0,108,14,6,12,0,0,63,192,1,144,13,1,3,128,127,234,192,6,32,11,0,193,255,213,85,64,24,192,10,131,254,170,170,191,192,97,0,15,253,85,85,127,224,64,254,63,250,170,171,255,128,1,128,255,213,90,215,254,0,1,254,0,234,170,175,252,253,255,254,0,0,117,127,255,193,252,0,0,0,0,127,192,15,190,72,0,0,0,0};
- // Crane_hook width=4, height=6 //
- char Crane_hook_1[] = {240,144,96,96,144,144};
- char Crane_hook_2[] = {240,240,96,96,144,144};
- // Crane_hook_mask width=4, height=6 //
- char Crane_hook_mask_1[] = {0,0,144,144,96,96};
- char Crane_hook_mask_2[] = {0,0,144,144,96,96};
- // Pillar_left_mask width=6, height=32 //
- char Pillar_left_mask_1[] = {0,68,52,68,76,44,76,12,12,92,28,92,92,28,92,28,28,92,28,92,92,28,92,12,12,76,44,76,68,52,68,0};
- char Pillar_left_mask_2[] = {0,68,52,68,76,44,76,12,12,92,28,92,92,28,92,28,28,92,28,92,92,28,92,12,12,76,44,76,68,52,68,0};
- // Pillar_right_mask width=6, height=32 //
- char Pillar_right_mask_1[] = {0,136,176,136,200,208,200,192,192,232,224,232,232,224,232,224,224,232,224,232,232,224,232,192,192,200,208,200,136,176,136,0};
- char Pillar_right_mask_2[] = {0,136,176,136,200,208,200,192,192,232,224,232,232,224,232,224,224,232,224,232,232,224,232,192,192,200,208,200,136,176,136,0};
- // Crane_pillar width=5, height=5 //
- char Crane_pillar_1[] = {248,168,248,168,216};
- char Crane_pillar_2[] = {248,168,216,168,216};
- // Crane_mask width=66, height=16 //
- char Crane_mask_1[] = {255,255,243,255,255,255,255,255,192,255,255,192,127,255,255,255,255,192,255,255,18,159,255,255,255,255,192,255,252,115,35,255,255,255,255,192,255,242,241,220,127,255,255,255,192,255,237,241,231,143,255,255,255,192,255,147,241,249,243,255,255,192,0,254,111,242,254,252,127,128,0,0,249,223,244,255,62,0,0,0,0,231,63,245,124,0,0,0,0,0,158,255,240,0,0,0,0,31,128,1,192,0,0,0,0,127,254,64,0,0,0,0,1,255,254,1,192,0,0,0,3,2,0,1,255,192,128,0,0,62,3,255,255,255,192,128,63,240,65,183,255,255,255,192};
- char Crane_mask_2[] = {255,255,243,255,255,255,255,255,192,255,255,192,127,255,255,255,255,192,255,255,18,159,255,255,255,255,192,255,252,115,35,255,255,255,255,192,255,242,241,220,127,255,255,255,192,255,237,241,231,143,255,255,255,192,255,147,241,249,243,255,255,192,0,254,111,242,254,252,127,128,0,0,249,223,244,255,62,0,0,0,0,231,63,245,124,0,0,0,0,0,158,255,240,0,0,0,0,31,128,1,192,0,0,0,0,127,254,64,0,0,0,0,1,255,254,1,192,0,0,0,3,2,0,1,255,192,128,0,0,62,3,255,255,255,192,128,63,240,65,183,255,255,255,192};
- // Crane_pillar_mask width=5, height=5 //
- char Crane_pillar_mask_1[] = {0,80,0,80,32};
- char Crane_pillar_mask_2[] = {0,80,0,80,32};
- void Draw_platform_1(int position_x, int position_y, char time) //platefrome type 1
- {
- char count; //variable à la con pour éviter de faire plusieurs fois la même instruction --'
- if(time) //si on demande la plateforme le jour
- {
- for(count = 0; count < 112; count += 8) //dessin du rail
- {
- draw_bmp(Rail_normal_1, position_x + count, position_y + 12, 8, 4, LIGHT_BUFFER, OR);
- draw_bmp(Rail_normal_2, position_x + count, position_y + 12, 8, 4, DARK_BUFFER, OR);
- }
- draw_bmp(Rail_end_square_1, position_x + 112, position_y + 12, 8, 4, LIGHT_BUFFER, OR); //fin du rail
- draw_bmp(Rail_end_square_2, position_x + 112, position_y + 12, 8, 4, DARK_BUFFER, OR);
- }
- else
- {
- for(count = 0; count < 112; count += 8) //dessin du rail
- {
- draw_bmp(Rail_normal_night_1, position_x + count, position_y + 12, 8, 4, LIGHT_BUFFER, OR);
- draw_bmp(Rail_normal_night_2, position_x + count, position_y + 12, 8, 4, DARK_BUFFER, OR);
- }
- draw_bmp(Rail_end_square_night_1, position_x + 112, position_y + 12, 8, 4, LIGHT_BUFFER, OR); //fin du rail
- draw_bmp(Rail_end_square_night_2, position_x + 112, position_y + 12, 8, 4, DARK_BUFFER, OR);
- }
- for(count = 16; count <64; count += 8) //dessin du premier pilier
- {
- draw_bmp(Pillar_normal_1, position_x + 9, position_y + count, 6, 8, LIGHT_BUFFER, OR);
- draw_bmp(Pillar_normal_2, position_x + 9, position_y + count, 6, 8, DARK_BUFFER, OR);
- }
- for(count = 16; count <64; count += 8) //dessin du deuxième pilier
- {
- draw_bmp(Pillar_normal_1, position_x + 57, position_y + count, 6, 8, LIGHT_BUFFER, OR);
- draw_bmp(Pillar_normal_2, position_x + 57, position_y + count, 6, 8, DARK_BUFFER, OR);
- }
- for(count = 16; count <64; count += 8) //dessin du troisième pilier
- {
- draw_bmp(Pillar_normal_1, position_x + 105, position_y + count, 6, 8, LIGHT_BUFFER, OR);
- draw_bmp(Pillar_normal_2, position_x + 105, position_y + count, 6, 8, DARK_BUFFER, OR);
- }
- for(count = 15; count < 57; count += 3) //dessin du premier echaffaudage
- {
- draw_bmp(Under_rail_1, position_x + count, position_y + 16, 3, 4, LIGHT_BUFFER, OR);
- draw_bmp(Under_rail_2, position_x + count, position_y + 16, 3, 4, DARK_BUFFER, OR);
- }
- for(count = 63; count < 105; count += 3) //dessin du deuxième echaffaudage
- {
- draw_bmp(Under_rail_1, position_x + count, position_y + 16, 3, 4, LIGHT_BUFFER, OR);
- draw_bmp(Under_rail_2, position_x + count, position_y + 16, 3, 4, DARK_BUFFER, OR);
- }
- draw_bmp(Flags_1, position_x + 48, position_y, 8, 12, LIGHT_BUFFER, OR); //drapeaux
- draw_bmp(Flags_2, position_x + 48, position_y, 8, 12, DARK_BUFFER, OR);
- draw_bmp(Flags_1, position_x + 64, position_y, 8, 12, LIGHT_BUFFER, OR);
- draw_bmp(Flags_2, position_x + 64, position_y, 8, 12, DARK_BUFFER, OR);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement