Advertisement
Purianite

Untitled

Oct 1st, 2011
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Old drawing code for my ice cave
  2.  
  3. if obj_3dcam.y < 11264
  4. {
  5. d3d_draw_floor(-10240,0,0,10240,10240,0,background_get_texture(IceTex1),30,30);
  6. d3d_draw_wall(-256,0,1024,-256,1536,0,background_get_texture(FortressTexture1),6,4);
  7. d3d_draw_wall(256,0,1024,256,1536,0,background_get_texture(FortressTexture1),6,4);
  8. d3d_draw_wall(-256,1536,256,-256,4096,0,background_get_texture(IceTex2),10,1);
  9. d3d_draw_wall(256,1536,256,256,4096,0,background_get_texture(IceTex2),10,1);
  10. d3d_draw_floor(-256,1536,256,-2816,4096,256,background_get_texture(IceTex1),4,4);
  11. d3d_draw_floor(256,1536,256,2816,4096,256,background_get_texture(IceTex1),4,1);
  12. d3d_draw_wall(-256,4096,512,-2816,4096,256,background_get_texture(IceTex2),10,1);
  13. d3d_draw_wall(256,4096,512,2816,4096,256,background_get_texture(IceTex2),10,1);
  14. d3d_draw_wall(-256,4096,512,-256,5120,0,background_get_texture(IceTex2),4,2);
  15. d3d_draw_wall(256,4096,512,256,5120,0,background_get_texture(IceTex2),4,2);
  16. d3d_draw_floor(-256,4096,512,-512,5120,512,background_get_texture(IceTex1),1,4);
  17. d3d_draw_floor(256,4096,512,512,5120,512,background_get_texture(IceTex1),1,4);
  18. d3d_draw_wall(-256,5120,512,256,5120,256,background_get_texture(IceTex2),2,1);
  19. d3d_draw_wall(-512,5120,768,-256,5120,512,background_get_texture(IceTex1TL),1,1);
  20. d3d_draw_wall(-256,5120,768,256,5120,512,background_get_texture(IceTex1),2,1);
  21. d3d_draw_wall(256,5120,768,512,5120,512,background_get_texture(IceTex1TR),1,1);
  22. d3d_draw_wall(-256,5120,512,-256,10240,0,background_get_texture(IceTex2),20,2);
  23. d3d_draw_wall(256,5120,512,256,10240,0,background_get_texture(IceTex2),20,2);
  24. }
  25. if obj_3dcam.y > 5120 && obj_3dcam.y < 21504
  26. {
  27. d3d_draw_floor(-10240,10240,-512,10240,20480,-512,background_get_texture(IceTex1),10,15);
  28. d3d_draw_wall(-768,10240,512,-768,15360,0,background_get_texture(IceTex2),10,4);
  29. d3d_draw_wall(768,10240,512,768,15360,0,background_get_texture(IceTex2),10,4);
  30. d3d_draw_wall(-512,10240,0,-512,15360,-512,background_get_texture(IceTex2),10,4);
  31. d3d_draw_wall(512,10240,0,512,15360,-512,background_get_texture(IceTex2),10,4);
  32. d3d_draw_floor(-768,10240,0,-512,15360,0,background_get_texture(IceTex1),1,20);
  33. d3d_draw_floor(768,10240,0,512,15360,0,background_get_texture(IceTex1),1,20);
  34. d3d_draw_wall(-512,10240,0,-512,15360,0,background_get_texture(IceTex2),20,2);
  35. d3d_draw_wall(512,10240,0,512,15360,0,background_get_texture(IceTex2),20,2);
  36. d3d_draw_floor(-384,11264,0,384,14336,0,background_get_texture(IceTex1),3,10);
  37. d3d_draw_wall(-384,11264,0,384,11264,-128,background_get_texture(IceTex2),3,1);
  38. d3d_draw_wall(-256,11520,-128,256,11520,-512,background_get_texture(IceTex2),2,3);
  39. d3d_draw_floor(-512,15104,0,512,15360,0,background_get_texture(IceTex1),4,1);
  40. d3d_draw_wall(-512,15104,0,512,15104,-512,background_get_texture(IceTex2),4,2);
  41. d3d_draw_wall(-768,15360,512,-512,15360,0,background_get_texture(IceTex2),1,2);
  42. d3d_draw_wall(768,15360,512,512,15360,0,background_get_texture(IceTex2),1,2);
  43. d3d_draw_wall(-512,15360,512,-512,20480,-512,background_get_texture(IceTex2),20,4);
  44. d3d_draw_wall(512,15360,512,512,20480,-512,background_get_texture(IceTex2),20,4);
  45. d3d_draw_floor(-256,15360,0,256,20480,0,background_get_texture(IceTex1),2,20);
  46. }
  47. if obj_3dcam.y > 15360 && obj_3dcam.y < 31744
  48. {
  49. d3d_draw_floor(-1024,20480,-3840,1024,30720,-3840,background_get_texture(IceTex1),8,40);
  50. d3d_draw_wall(-512,20480,512,-256,20480,-3840,background_get_texture(IceTex2),1,15);
  51. d3d_draw_wall(512,20480,512,256,20480,-3840,background_get_texture(IceTex2),1,15);
  52. d3d_draw_wall(-256,20480,512,-256,20992,0,background_get_texture(IceTex2),2,2);
  53. d3d_draw_wall(256,20480,512,256,20992,0,background_get_texture(IceTex2),2,2);
  54. d3d_draw_wall(-256,20992,512,256,20992,0,background_get_texture(IceTex2),2,2);
  55. d3d_draw_floor(-256,20736,0,0,20480,0,background_get_texture(IceTex1TR),1,1);
  56. d3d_draw_floor(0,20736,0,256,20480,0,background_get_texture(IceTex1TL),1,1);
  57. d3d_draw_floor(0,20992,0,256,20736,0,background_get_texture(IceTex1BL),1,1);
  58. d3d_draw_floor(-256,20992,0,0,20736,0,background_get_texture(IceTex1BR),1,1);
  59. d3d_draw_wall(-256,20736,0,0,20992,-3328,background_get_texture(IceTex2),1,13);
  60. d3d_draw_wall(256,20736,0,0,20992,-3328,background_get_texture(IceTex2),1,13);
  61. d3d_draw_wall(-512,20480,-3328,-512,23040,-3840,background_get_texture(IceTex2),10,2);
  62. d3d_draw_wall(512,20480,-3328,512,23040,-3840,background_get_texture(IceTex2),10,2);
  63. d3d_draw_wall(-512,23040,-3328,-256,25600,-3840,background_get_texture(IceTex2),10,2);
  64. d3d_draw_wall(512,23040,-3328,256,25600,-3840,background_get_texture(IceTex2),10,2);
  65. d3d_draw_wall(-256,25600,-3328,-512,28160,-3840,background_get_texture(IceTex2),10,2);
  66. d3d_draw_wall(256,25600,-3328,512,28160,-3840,background_get_texture(IceTex2),10,2);
  67. d3d_draw_wall(-512,28160,-3328,-256,30720,-3840,background_get_texture(IceTex2),10,2);
  68. d3d_draw_wall(512,28160,-3328,256,30720,-3840,background_get_texture(IceTex2),10,2);
  69. d3d_draw_wall(-256,30720,-3328,256,30720,-3840,background_get_texture(IceTex2Hole),1,1);
  70. }
  71. if obj_3dcam.y > 25600 && obj_3dcam.y < 41984
  72. {
  73. d3d_draw_floor(-2048,30720,-3840,2048,40960,-3840,background_get_texture(IceTex1),16,40);
  74. d3d_draw_wall(256,30720,-3328,1280,35840,-3840,background_get_texture(IceTex2),20,2);
  75. d3d_draw_wall(-256,30720,-3328,-256,33280,-3840,background_get_texture(IceTex2),10,2);
  76. d3d_draw_wall(-256,33280,-3328,256,35840,-3840,background_get_texture(IceTex2),10,2);
  77. d3d_draw_wall(256,35840,-3328,1024,37120,-3840,background_get_texture(IceTex2),10,2);
  78. d3d_draw_wall(1024,37120,-3328,256,37120,-3840,background_get_texture(IceTex2),3,2);
  79. d3d_draw_wall(256,37120,-3328,256,35840,-3840,background_get_texture(IceTex2),3,2);
  80. d3d_draw_wall(2048,35840,-3328,1792,40960,-3840,background_get_texture(IceTex2),20,2);
  81. d3d_draw_wall(1792,40960,-3328,-1280,40960,-3840,background_get_texture(IceTex2),12,2);
  82. d3d_draw_wall(-2048,30720,-3328,-2048,40960,-3840,background_get_texture(IceTex2),40,2);
  83. d3d_draw_wall(-1280,32768,-3328,-1280,40960,-3840,background_get_texture(IceTex2),32,2);
  84. d3d_draw_wall(-1024,32768,-3328,-512,40960,-3840,background_get_texture(IceTex2),32,2);
  85. d3d_draw_wall(-1024,32768,-3328,-1280,32768,-3840,background_get_texture(IceTex2),1,2);
  86. d3d_draw_wall(-2048,30720,-3328,-256,30720,-3840,background_get_texture(IceTex2),9,2);
  87. }
  88. if obj_3dcam.y > 35840
  89. {
  90. d3d_draw_floor(-2048,40960,-3840,2048,51200,-3840,background_get_texture(IceTex1),16,60);
  91. d3d_draw_wall(-2048,40960,-3328,-2048,49152,-3840,background_get_texture(IceTex2),32,2);
  92. d3d_draw_wall(-1280,40960,-3328,-1536,47104,-3840,background_get_texture(IceTex2),24,2);
  93. d3d_draw_wall(-1536,47104,-3328,-768,48640,-3840,background_get_texture(IceTex2),6,2);
  94. d3d_draw_wall(-2048,49152,-3328,-768,51200,-3840,background_get_texture(IceTex2),8,2);
  95. d3d_draw_wall(-768,48640,-3328,0,50176,-3840,background_get_texture(IceTex2),3,2);
  96. d3d_draw_wall(0,50176,-3328,768,50176,-3840,background_get_texture(IceTex2),3,2);
  97. d3d_draw_wall(-768,51200,-3328,768,51200,-3840,background_get_texture(IceTex2),6,2);
  98. d3d_draw_wall(768,51200,-3328,2048,50176,-3840,background_get_texture(IceTex2),6,2);
  99. d3d_draw_wall(2048,50176,-3328,2048,40960,-3840,background_get_texture(IceTex2),36,2);
  100. d3d_draw_wall(768,50176,-3328,768,41984,-3840,background_get_texture(IceTex2),32,2);
  101. d3d_draw_wall(2048,40960,-2816,-1280,40960,-3840,background_get_texture(IceTex2),13,4);
  102. d3d_draw_floor(768,40960,-3584,2048,41984,-3584,background_get_texture(IceTex1),5,4);
  103. d3d_draw_floor(-2048,40960,-3328,768,51200,-3328,background_get_texture(IceTex1),13,40);
  104. d3d_draw_wall(768,41984,-3584,2048,41984,-3840,background_get_texture(IceTex2),5,1);
  105. d3d_draw_wall(768,40960,-3328,768,41984,-3584,background_get_texture(IceTex2),4,1);
  106. d3d_draw_wall(-1280,40960,-2816,-1280,51200,-3328,background_get_texture(IceTex2),40,2);
  107. d3d_draw_wall(768,41984,-2816,768,51200,-3328,background_get_texture(IceTex2),36,2);
  108. d3d_draw_wall(768,41984,-2816,512,41984,-3328,background_get_texture(IceTex2),1,2);
  109. d3d_draw_wall(512,41984,-2816,768,51200,-3328,background_get_texture(IceTex2),36,2);
  110. }
  111.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement