Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Old drawing code for my ice cave
- if obj_3dcam.y < 11264
- {
- d3d_draw_floor(-10240,0,0,10240,10240,0,background_get_texture(IceTex1),30,30);
- d3d_draw_wall(-256,0,1024,-256,1536,0,background_get_texture(FortressTexture1),6,4);
- d3d_draw_wall(256,0,1024,256,1536,0,background_get_texture(FortressTexture1),6,4);
- d3d_draw_wall(-256,1536,256,-256,4096,0,background_get_texture(IceTex2),10,1);
- d3d_draw_wall(256,1536,256,256,4096,0,background_get_texture(IceTex2),10,1);
- d3d_draw_floor(-256,1536,256,-2816,4096,256,background_get_texture(IceTex1),4,4);
- d3d_draw_floor(256,1536,256,2816,4096,256,background_get_texture(IceTex1),4,1);
- d3d_draw_wall(-256,4096,512,-2816,4096,256,background_get_texture(IceTex2),10,1);
- d3d_draw_wall(256,4096,512,2816,4096,256,background_get_texture(IceTex2),10,1);
- d3d_draw_wall(-256,4096,512,-256,5120,0,background_get_texture(IceTex2),4,2);
- d3d_draw_wall(256,4096,512,256,5120,0,background_get_texture(IceTex2),4,2);
- d3d_draw_floor(-256,4096,512,-512,5120,512,background_get_texture(IceTex1),1,4);
- d3d_draw_floor(256,4096,512,512,5120,512,background_get_texture(IceTex1),1,4);
- d3d_draw_wall(-256,5120,512,256,5120,256,background_get_texture(IceTex2),2,1);
- d3d_draw_wall(-512,5120,768,-256,5120,512,background_get_texture(IceTex1TL),1,1);
- d3d_draw_wall(-256,5120,768,256,5120,512,background_get_texture(IceTex1),2,1);
- d3d_draw_wall(256,5120,768,512,5120,512,background_get_texture(IceTex1TR),1,1);
- d3d_draw_wall(-256,5120,512,-256,10240,0,background_get_texture(IceTex2),20,2);
- d3d_draw_wall(256,5120,512,256,10240,0,background_get_texture(IceTex2),20,2);
- }
- if obj_3dcam.y > 5120 && obj_3dcam.y < 21504
- {
- d3d_draw_floor(-10240,10240,-512,10240,20480,-512,background_get_texture(IceTex1),10,15);
- d3d_draw_wall(-768,10240,512,-768,15360,0,background_get_texture(IceTex2),10,4);
- d3d_draw_wall(768,10240,512,768,15360,0,background_get_texture(IceTex2),10,4);
- d3d_draw_wall(-512,10240,0,-512,15360,-512,background_get_texture(IceTex2),10,4);
- d3d_draw_wall(512,10240,0,512,15360,-512,background_get_texture(IceTex2),10,4);
- d3d_draw_floor(-768,10240,0,-512,15360,0,background_get_texture(IceTex1),1,20);
- d3d_draw_floor(768,10240,0,512,15360,0,background_get_texture(IceTex1),1,20);
- d3d_draw_wall(-512,10240,0,-512,15360,0,background_get_texture(IceTex2),20,2);
- d3d_draw_wall(512,10240,0,512,15360,0,background_get_texture(IceTex2),20,2);
- d3d_draw_floor(-384,11264,0,384,14336,0,background_get_texture(IceTex1),3,10);
- d3d_draw_wall(-384,11264,0,384,11264,-128,background_get_texture(IceTex2),3,1);
- d3d_draw_wall(-256,11520,-128,256,11520,-512,background_get_texture(IceTex2),2,3);
- d3d_draw_floor(-512,15104,0,512,15360,0,background_get_texture(IceTex1),4,1);
- d3d_draw_wall(-512,15104,0,512,15104,-512,background_get_texture(IceTex2),4,2);
- d3d_draw_wall(-768,15360,512,-512,15360,0,background_get_texture(IceTex2),1,2);
- d3d_draw_wall(768,15360,512,512,15360,0,background_get_texture(IceTex2),1,2);
- d3d_draw_wall(-512,15360,512,-512,20480,-512,background_get_texture(IceTex2),20,4);
- d3d_draw_wall(512,15360,512,512,20480,-512,background_get_texture(IceTex2),20,4);
- d3d_draw_floor(-256,15360,0,256,20480,0,background_get_texture(IceTex1),2,20);
- }
- if obj_3dcam.y > 15360 && obj_3dcam.y < 31744
- {
- d3d_draw_floor(-1024,20480,-3840,1024,30720,-3840,background_get_texture(IceTex1),8,40);
- d3d_draw_wall(-512,20480,512,-256,20480,-3840,background_get_texture(IceTex2),1,15);
- d3d_draw_wall(512,20480,512,256,20480,-3840,background_get_texture(IceTex2),1,15);
- d3d_draw_wall(-256,20480,512,-256,20992,0,background_get_texture(IceTex2),2,2);
- d3d_draw_wall(256,20480,512,256,20992,0,background_get_texture(IceTex2),2,2);
- d3d_draw_wall(-256,20992,512,256,20992,0,background_get_texture(IceTex2),2,2);
- d3d_draw_floor(-256,20736,0,0,20480,0,background_get_texture(IceTex1TR),1,1);
- d3d_draw_floor(0,20736,0,256,20480,0,background_get_texture(IceTex1TL),1,1);
- d3d_draw_floor(0,20992,0,256,20736,0,background_get_texture(IceTex1BL),1,1);
- d3d_draw_floor(-256,20992,0,0,20736,0,background_get_texture(IceTex1BR),1,1);
- d3d_draw_wall(-256,20736,0,0,20992,-3328,background_get_texture(IceTex2),1,13);
- d3d_draw_wall(256,20736,0,0,20992,-3328,background_get_texture(IceTex2),1,13);
- d3d_draw_wall(-512,20480,-3328,-512,23040,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(512,20480,-3328,512,23040,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(-512,23040,-3328,-256,25600,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(512,23040,-3328,256,25600,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(-256,25600,-3328,-512,28160,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(256,25600,-3328,512,28160,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(-512,28160,-3328,-256,30720,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(512,28160,-3328,256,30720,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(-256,30720,-3328,256,30720,-3840,background_get_texture(IceTex2Hole),1,1);
- }
- if obj_3dcam.y > 25600 && obj_3dcam.y < 41984
- {
- d3d_draw_floor(-2048,30720,-3840,2048,40960,-3840,background_get_texture(IceTex1),16,40);
- d3d_draw_wall(256,30720,-3328,1280,35840,-3840,background_get_texture(IceTex2),20,2);
- d3d_draw_wall(-256,30720,-3328,-256,33280,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(-256,33280,-3328,256,35840,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(256,35840,-3328,1024,37120,-3840,background_get_texture(IceTex2),10,2);
- d3d_draw_wall(1024,37120,-3328,256,37120,-3840,background_get_texture(IceTex2),3,2);
- d3d_draw_wall(256,37120,-3328,256,35840,-3840,background_get_texture(IceTex2),3,2);
- d3d_draw_wall(2048,35840,-3328,1792,40960,-3840,background_get_texture(IceTex2),20,2);
- d3d_draw_wall(1792,40960,-3328,-1280,40960,-3840,background_get_texture(IceTex2),12,2);
- d3d_draw_wall(-2048,30720,-3328,-2048,40960,-3840,background_get_texture(IceTex2),40,2);
- d3d_draw_wall(-1280,32768,-3328,-1280,40960,-3840,background_get_texture(IceTex2),32,2);
- d3d_draw_wall(-1024,32768,-3328,-512,40960,-3840,background_get_texture(IceTex2),32,2);
- d3d_draw_wall(-1024,32768,-3328,-1280,32768,-3840,background_get_texture(IceTex2),1,2);
- d3d_draw_wall(-2048,30720,-3328,-256,30720,-3840,background_get_texture(IceTex2),9,2);
- }
- if obj_3dcam.y > 35840
- {
- d3d_draw_floor(-2048,40960,-3840,2048,51200,-3840,background_get_texture(IceTex1),16,60);
- d3d_draw_wall(-2048,40960,-3328,-2048,49152,-3840,background_get_texture(IceTex2),32,2);
- d3d_draw_wall(-1280,40960,-3328,-1536,47104,-3840,background_get_texture(IceTex2),24,2);
- d3d_draw_wall(-1536,47104,-3328,-768,48640,-3840,background_get_texture(IceTex2),6,2);
- d3d_draw_wall(-2048,49152,-3328,-768,51200,-3840,background_get_texture(IceTex2),8,2);
- d3d_draw_wall(-768,48640,-3328,0,50176,-3840,background_get_texture(IceTex2),3,2);
- d3d_draw_wall(0,50176,-3328,768,50176,-3840,background_get_texture(IceTex2),3,2);
- d3d_draw_wall(-768,51200,-3328,768,51200,-3840,background_get_texture(IceTex2),6,2);
- d3d_draw_wall(768,51200,-3328,2048,50176,-3840,background_get_texture(IceTex2),6,2);
- d3d_draw_wall(2048,50176,-3328,2048,40960,-3840,background_get_texture(IceTex2),36,2);
- d3d_draw_wall(768,50176,-3328,768,41984,-3840,background_get_texture(IceTex2),32,2);
- d3d_draw_wall(2048,40960,-2816,-1280,40960,-3840,background_get_texture(IceTex2),13,4);
- d3d_draw_floor(768,40960,-3584,2048,41984,-3584,background_get_texture(IceTex1),5,4);
- d3d_draw_floor(-2048,40960,-3328,768,51200,-3328,background_get_texture(IceTex1),13,40);
- d3d_draw_wall(768,41984,-3584,2048,41984,-3840,background_get_texture(IceTex2),5,1);
- d3d_draw_wall(768,40960,-3328,768,41984,-3584,background_get_texture(IceTex2),4,1);
- d3d_draw_wall(-1280,40960,-2816,-1280,51200,-3328,background_get_texture(IceTex2),40,2);
- d3d_draw_wall(768,41984,-2816,768,51200,-3328,background_get_texture(IceTex2),36,2);
- d3d_draw_wall(768,41984,-2816,512,41984,-3328,background_get_texture(IceTex2),1,2);
- d3d_draw_wall(512,41984,-2816,768,51200,-3328,background_get_texture(IceTex2),36,2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement