Advertisement
Siapran

Platform_recomposer.c

Oct 22nd, 2011
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 8.50 KB | None | 0 0
  1. // Rail_normal width=8, height=4 //
  2. char Rail_normal_1[] = {255,234,191,255};
  3. char Rail_normal_2[] = {255,181,191,255};
  4.  
  5. // Rail_end_square width=8, height=4 //
  6. char Rail_end_square_1[] = {255,235,191,255};
  7. char Rail_end_square_2[] = {255,183,191,255};
  8.  
  9. // Rail_end_triangle width=8, height=4 //
  10. char Rail_end_triangle_1[] = {255,235,190,252};
  11. char Rail_end_triangle_2[] = {255,183,190,252};
  12.  
  13. // Under_rail width=3, height=4 //
  14. char Under_rail_1[] = {64,160,64,224};
  15. char Under_rail_2[] = {64,160,64,224};
  16.  
  17. // Flags width=8, height=12 //
  18. char Flags_1[] = {224,240,246,247,55,19,17,17,17,17,17,17};
  19. char Flags_2[] = {224,240,246,247,55,19,17,17,17,17,17,17};
  20.  
  21. // Pillar_normal width=6, height=8 //
  22. char Pillar_normal_1[] = {252,180,204,180,180,204,180,252};
  23. char Pillar_normal_2[] = {204,180,204,180,180,204,180,204};
  24.  
  25. // Camera width=9, height=12 //
  26. 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};
  27. 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};
  28.  
  29. // Pillar_left width=6, height=32 //
  30. 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};
  31. 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};
  32.  
  33. // Pillar_right width=6, height=32 //
  34. 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};
  35. 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};
  36.  
  37. // Rail_normal_night width=8, height=4 //
  38. char Rail_normal_night_1[] = {255,224,191,255};
  39. char Rail_normal_night_2[] = {255,181,191,255};
  40.  
  41. // Rail_end_square_night width=8, height=4 //
  42. char Rail_end_square_night_1[] = {255,227,191,255};
  43. char Rail_end_square_night_2[] = {255,183,191,255};
  44.  
  45. // Rail_end_triangle_night width=8, height=4 //
  46. char Rail_end_triangle_night_1[] = {255,227,190,252};
  47. char Rail_end_triangle_night_2[] = {255,183,190,252};
  48.  
  49. // Pillar_mask width=6, height=8 //
  50. char Pillar_mask_1[] = {0,72,48,72,72,48,72,0};
  51. char Pillar_mask_2[] = {0,72,48,72,72,48,72,0};
  52.  
  53. // Camera_mask width=9, height=12 //
  54. 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};
  55. 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};
  56.  
  57. // Rail_end_triangle_mask width=8, height=4 //
  58. char Rail_end_triangle_mask_1[] = {0,0,1,3};
  59. char Rail_end_triangle_mask_2[] = {0,0,1,3};
  60.  
  61. // Crane width=66, height=16 //
  62. 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};
  63. 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};
  64.  
  65. // Crane_hook width=4, height=6 //
  66. char Crane_hook_1[] = {240,144,96,96,144,144};
  67. char Crane_hook_2[] = {240,240,96,96,144,144};
  68.  
  69. // Crane_hook_mask width=4, height=6 //
  70. char Crane_hook_mask_1[] = {0,0,144,144,96,96};
  71. char Crane_hook_mask_2[] = {0,0,144,144,96,96};
  72.  
  73. // Pillar_left_mask width=6, height=32 //
  74. 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};
  75. 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};
  76.  
  77. // Pillar_right_mask width=6, height=32 //
  78. 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};
  79. 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};
  80.  
  81. // Crane_pillar width=5, height=5 //
  82. char Crane_pillar_1[] = {248,168,248,168,216};
  83. char Crane_pillar_2[] = {248,168,216,168,216};
  84.  
  85. // Crane_mask width=66, height=16 //
  86. 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};
  87. 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};
  88.  
  89. // Crane_pillar_mask width=5, height=5 //
  90. char Crane_pillar_mask_1[] = {0,80,0,80,32};
  91. char Crane_pillar_mask_2[] = {0,80,0,80,32};
  92.  
  93.  
  94. void Draw_platform_1(int position_x, int position_y, char time) //platefrome type 1
  95. {
  96.     char count; //variable à la con pour éviter de faire plusieurs fois la même instruction --'
  97.    
  98.     if(time) //si on demande la plateforme le jour
  99.     {
  100.    
  101.         for(count = 0; count < 112; count += 8) //dessin du rail
  102.         {
  103.             draw_bmp(Rail_normal_1, position_x + count, position_y + 12, 8, 4, LIGHT_BUFFER, OR);
  104.             draw_bmp(Rail_normal_2, position_x + count, position_y + 12, 8, 4, DARK_BUFFER, OR);
  105.         }
  106.         draw_bmp(Rail_end_square_1, position_x + 112, position_y + 12, 8, 4, LIGHT_BUFFER, OR); //fin du rail
  107.         draw_bmp(Rail_end_square_2, position_x + 112, position_y + 12, 8, 4, DARK_BUFFER, OR);
  108.     }
  109.     else
  110.     {
  111.         for(count = 0; count < 112; count += 8) //dessin du rail
  112.         {
  113.             draw_bmp(Rail_normal_night_1, position_x + count, position_y + 12, 8, 4, LIGHT_BUFFER, OR);
  114.             draw_bmp(Rail_normal_night_2, position_x + count, position_y + 12, 8, 4, DARK_BUFFER, OR);
  115.         }
  116.         draw_bmp(Rail_end_square_night_1, position_x + 112, position_y + 12, 8, 4, LIGHT_BUFFER, OR); //fin du rail
  117.         draw_bmp(Rail_end_square_night_2, position_x + 112, position_y + 12, 8, 4, DARK_BUFFER, OR);
  118.     }
  119.    
  120.     for(count = 16; count <64; count += 8) //dessin du premier pilier
  121.     {
  122.         draw_bmp(Pillar_normal_1, position_x + 9, position_y + count, 6, 8, LIGHT_BUFFER, OR);
  123.         draw_bmp(Pillar_normal_2, position_x + 9, position_y + count, 6, 8, DARK_BUFFER, OR);
  124.     }
  125.     for(count = 16; count <64; count += 8) //dessin du deuxième pilier
  126.     {
  127.         draw_bmp(Pillar_normal_1, position_x + 57, position_y + count, 6, 8, LIGHT_BUFFER, OR);
  128.         draw_bmp(Pillar_normal_2, position_x + 57, position_y + count, 6, 8, DARK_BUFFER, OR);
  129.     }
  130.     for(count = 16; count <64; count += 8) //dessin du troisième pilier
  131.     {
  132.         draw_bmp(Pillar_normal_1, position_x + 105, position_y + count, 6, 8, LIGHT_BUFFER, OR);
  133.         draw_bmp(Pillar_normal_2, position_x + 105, position_y + count, 6, 8, DARK_BUFFER, OR);
  134.     }
  135.     for(count = 15; count < 57; count += 3) //dessin du premier echaffaudage
  136.     {
  137.         draw_bmp(Under_rail_1, position_x + count, position_y + 16, 3, 4, LIGHT_BUFFER, OR);
  138.         draw_bmp(Under_rail_2, position_x + count, position_y + 16, 3, 4, DARK_BUFFER, OR);
  139.     }
  140.     for(count = 63; count < 105; count += 3) //dessin du deuxième echaffaudage
  141.     {
  142.         draw_bmp(Under_rail_1, position_x + count, position_y + 16, 3, 4, LIGHT_BUFFER, OR);
  143.         draw_bmp(Under_rail_2, position_x + count, position_y + 16, 3, 4, DARK_BUFFER, OR);
  144.     }
  145.     draw_bmp(Flags_1, position_x + 48, position_y, 8, 12, LIGHT_BUFFER, OR); //drapeaux
  146.     draw_bmp(Flags_2, position_x + 48, position_y, 8, 12, DARK_BUFFER, OR);
  147.     draw_bmp(Flags_1, position_x + 64, position_y, 8, 12, LIGHT_BUFFER, OR);
  148.     draw_bmp(Flags_2, position_x + 64, position_y, 8, 12, DARK_BUFFER, OR);
  149. }
  150.  
  151.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement