home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / games / lib / net3d / map.v < prev    next >
Encoding:
Text File  |  1995-07-13  |  6.0 KB  |  346 lines

  1. /* a simple world map file */
  2. map 21 20    /* size */
  3.     200.0    /* ground size */
  4.     1200    /* max hill height */
  5. {
  6. DSAGKADSKGLHDGKSHGDKA
  7. DFBABCBAAAAABCBAAAKLA
  8. KAAAAAAAAAAAAAAAAAAMA
  9. NAAAAAAAAAAAAAAAAAAPA
  10. LAAAAAAAAAAAAAAAAAANA
  11. NAAAAAAAAAAAAAAAAAAPA
  12. ZDBAAAAAAAAAAAAAAABQA
  13. PAAAAAAAAAAAAAAAAAANA
  14. NAAAAAAAAAAAAAAAAAAMA
  15. OAAAAAAAAAAAAAAAAAALA
  16. PAAAAAAAAGGAAAAAAAANA
  17. NAAAAAAAAAAAAAAAAAAMA
  18. AAAAAAAAAAAAAAAAAAAAA
  19. AAAAAAAAAAAAAAAAAAAAA
  20. AAJGJKGJKJKAAAAAAAAAA
  21. AAAjjjkfuJLKAAAAAAAAA
  22. AAAJHGJJGJJAAAAAAAAAA
  23. AAAAAAAAAAAAAAAAAAAAA
  24. AAAAAAAAAAAAAAAAAAAAA
  25. AAAAAAAAAAAAAAAAAAAAA
  26. }
  27.  
  28. lookout 815 915 130
  29. fadeto 22000 22000 22000 
  30. ground 2 2
  31.  
  32. #include "house.def.v"
  33. #define House(x,y)    vehicle HOUSE { \
  34.             instance house \
  35.             offset x y 0 \
  36.             }
  37.  
  38. vehicle pylon def { 
  39. name "A power pole" 
  40. type static 
  41. hp 6 
  42. object { 
  43.     at x y 0 
  44.     points { 0 0 0  3 0 0  3 3 0  0 3 0 
  45.          0 0 25  3 0 25  3 3 25  0 3 25 
  46.         } 
  47.     face 170 f { 0 4 5 1 }
  48.     face 171 f { 1 5 6 2 } 
  49.     face 172 f { 2 6 7 3 } 
  50.     face 173 f { 3 7 4 0 } 
  51.     face 174 f { 7 6 5 4 } 
  52.     } 
  53. object { 
  54.     at x y 0 
  55.     points { 0 -4 22  0 7 22 } 
  56.     face 32 l { 0 1 } 
  57.     } 
  58. object {
  59.     at x y 0
  60.     points { 3 -4 22  3 7 22 }
  61.     face 32 l { 0 1 }
  62.     }
  63. }
  64. #define Pylon(x,y)    vehicle PYLON { \
  65.             instance pylon \
  66.             offset x y 0 \
  67.             }
  68.  
  69. #define RoadN(x,y)    object { \
  70.                 at x y 0 \
  71.                 points { 0 0 0  200 0 0  200 40 0  0 40 0 } \
  72.                 face 45 p { 0 1 2 3 } \
  73.                 } 
  74.  
  75. #define RoadE(x,y)    object { \
  76.                 at x y 0 \
  77.                 points { 0 0 0  0 200 0  40 200 0  40 0 0 } \
  78.                 face 45 p { 0 1 2 3 } \
  79.                 } 
  80.  
  81. vehicle house2 def { 
  82. name "A fairly large house" 
  83. type static 
  84. hp 35 
  85. object { 
  86.     at x y 0 
  87.     points { 
  88.         0 0 0  80 0 0  80 40 0  0 40 0 
  89.         0 0 20  80 0 20  80 40 20  0 40 20 
  90.         20 20 30  60 20 30 
  91.         } 
  92.     face 140 f { 0 4 5 1 } 
  93.     face 141 f { 1 5 6 2 } 
  94.     face 142 f { 2 6 7 3 } 
  95.     face 143 f { 3 7 4 0 } 
  96.     face 50 f { 4 8 9 5 } 
  97.     face 51 f { 5 9 6 } 
  98.     face 52 f { 6 9 8 7 } 
  99.     face 53 f { 7 8 4 } 
  100.     } 
  101. }
  102.  
  103. #define House2(x,y)    vehicle HOUSE2 { \
  104.             instance house2 \
  105.             offset x y 0 \
  106.             }
  107.  
  108. vehicle tower def {
  109. name "A 10 storey building"
  110. type static
  111. hp 66
  112. object {        /* Lower part */
  113.     points {
  114.         0 0 0  50 0 0  50 50 0  0 50 0
  115.         0 0 80  50 0 80  50 50 80  0 50 80
  116.         }
  117.     face 50 f { 0 4 5 1 }
  118.     face 51 f { 1 5 6 2 }
  119.     face 52 f { 2 6 7 3 }
  120.     face 53 f { 3 7 4 0 }
  121.     face 54 f { 7 6 5 4 }
  122.     }
  123. object {        /* Middle section */
  124.     points {
  125.         10 10 80  40 10 80  40 40 80  10 40 80
  126.         10 10 200  40 10 200 40 40 200  10 40 200
  127.         }
  128.     face 55 f { 0 4 5 1 }
  129.     face 56 f { 1 5 6 2 }
  130.     face 57 f { 2 6 7 3 }
  131.     face 58 f { 3 7 4 0 }
  132.     face 59 f { 7 6 5 4 }
  133.     }
  134. object {        /* Pointed top bit */
  135.     points {
  136.         15 15 200  35 15 200  35 35 200  15 35 200  25 25 300
  137.         }
  138.     face 60 f { 0 4 1 }
  139.     face 61 f { 1 4 2 }
  140.     face 62 f { 2 4 3 }
  141.     face 63 f { 3 4 0 }
  142.     }
  143. object {        /* aerial on top */
  144.     points { 25 25 300  25 25 330 }
  145.     face 255 l { 0 1 }
  146.     }
  147. }
  148.  
  149. #define Tower(x,y)    vehicle TOWER { \
  150.             instance tower \
  151.             offset x y 0 \
  152.             }
  153.  
  154. #define Tree(x,y)    vehicle TREE { \
  155.             instance tree \
  156.             offset x y 0 \
  157.             }
  158.  
  159. /* Houses in the corner of the map */
  160. House(700,700)
  161. House(760,700)
  162. House(820,700)
  163. House(880,700)
  164. House(700,780)
  165. House2(760,780)
  166.  
  167. /* the road between villages */
  168. vehicle road {
  169. name "The road between villages"
  170. type scenery
  171. RoadN(700,740)
  172. RoadN(900,740)
  173. RoadN(1100,740)
  174. RoadN(1300,740)
  175. RoadN(1500,740)
  176. RoadN(1700,740)
  177. RoadN(1900,740)
  178. RoadN(2100,740)
  179. RoadN(2300,740)
  180. RoadN(2500,740)
  181. RoadN(2700,740)
  182. RoadN(2900,740)
  183. object {                /* with a helipad at the end */
  184.     points { 3100 700 0  3220 700 0  3220 820 0  3100 820 0 }
  185.     face 45 p { 0 1 2 3 }
  186.     }
  187. }
  188.  
  189. /* power poles along the north-south road */
  190. Pylon(960,737)
  191. Pylon(960,780)
  192. Pylon(1160,737)
  193. Pylon(1160,780)    
  194. Pylon(1360,737)
  195. Pylon(1360,780)    
  196.  
  197. /* the east-west road */
  198. vehicle road2 {
  199. name "The East-West Road"
  200. type scenery
  201. RoadE(1700,500)
  202. RoadE(1700,700)
  203. RoadE(1700,900)
  204. RoadE(1700,1100)
  205. }
  206.  
  207. /* a house at the end of the road */
  208. House(1700,1300)
  209.  
  210. /* houses at the intersection */
  211. House(1740,700)
  212. House2(1740,780)
  213. House(1660,700)
  214.  
  215. vehicle church {
  216. name "A Church Building with tower"
  217. type static
  218. hp 100
  219. offset 800 900 0
  220. object {        /* the tower */
  221.     at 0 0 0 
  222.     points { 
  223.         0 0 0  30 0 0  30 30 0  0 30 0 
  224.         0 0 90  30 0 90  30 30 90  0 30 90 
  225.         15 15 120
  226.         }
  227.         face 50 f { 0 4 5 1 }
  228.         face 51 f { 1 5 6 2 }
  229.      face 52 f { 2 6 7 3 }
  230.         face 53 f { 3 7 4 0 }
  231.         face 174 f { 4 8 5 }
  232.     face 175 f { 5 8 6 }
  233.         face 176 f { 6 8 7 }
  234.     face 177 f { 7 8 4 } 
  235.     }
  236. }
  237. House2(831,900)
  238.  
  239. vehicle road3 {
  240. name "The road from the village to tower"
  241. type scenery
  242. RoadE(910,780)
  243. }
  244.  
  245. /* another village */
  246. House(2800,3000)
  247. House(2800,3100)
  248. House(2880,3050)
  249. House2(2880,3130)
  250. vehicle road4 {
  251. name "A long long road"
  252. type scenery
  253. RoadE(2840,3000)
  254. RoadE(2840,2800)
  255. RoadE(2840,2600)
  256. RoadE(2840,2400)
  257. RoadE(2840,2200)
  258. RoadE(2840,2000)
  259. RoadE(2840,1800)
  260. RoadE(2840,1600)
  261. RoadE(2840,1400)
  262. RoadE(2840,1200)
  263. RoadE(2840,1000)
  264. RoadE(2840,800)
  265. RoadE(2840,600)
  266. }
  267.  
  268. /* Some trees */
  269. Tree(1502,1002)
  270. Tree(1515,1060)
  271. Tree(2150,1486)
  272. Tree(1081,1080)
  273. Tree(1590,1801)
  274. Tree(1933,1052)
  275. Tree(1560,1010)
  276. Tree(2581,1243)
  277. Tree(1820,1030)
  278. Tree(1201,1096)
  279. Tree(2315,1638)
  280. Tree(1500,1064)
  281.  
  282. /* A few large buildings */
  283. Tower(3200,3800)
  284. Tower(3290,3800)
  285. Tower(3200,3870)
  286. Tower(3290,3920)
  287.  
  288. /* Ammuniton and weapons bonuses */
  289. vehicle missilebonus {
  290. name "A Missile Launcher"
  291. flying
  292. type weapon
  293. weapon missile
  294. hp 2
  295. offset 3100 3700 2
  296. object {
  297.     points { 0 0 0  5 0 0  5 5 0  0 5 0
  298.          0 0 5  5 0 5  5 5 5  0 5 5 }
  299.     face 25 f { 0 4 5 1 }
  300.     face 26 f { 1 5 6 2 }
  301.     face 27 f { 2 6 7 3 }
  302.     face 28 f { 3 7 4 0 }
  303.     face 29 f { 0 1 2 3 }
  304.     face 30 f { 7 6 5 4 }
  305.     }
  306. }
  307.  
  308. /* A road between them the towers */
  309. vehicle road {
  310. name "The city road"
  311. type scenery
  312. RoadE(3250,4000)        /* through city */
  313. RoadE(3250,3800)
  314. RoadE(3250,3600)
  315. RoadE(3250,3400)
  316. RoadE(3250,3200)
  317. RoadN(2650,3200)        /* connecting to other road */
  318. RoadN(2850,3200)
  319. RoadN(3050,3200)
  320. }
  321.  
  322. /* things living in the game world */
  323. #include "ptero.def.v"
  324. #include "amigaball.def.v"
  325. #include "fish.def.v"
  326. vehicle fish {
  327. instance fish
  328. offset 600 600 200
  329. }
  330.  
  331. vehicle amigaball {
  332. instance amigaball
  333. offset 1220 760 0
  334. }
  335.  
  336. vehicle ptero2 {
  337. instance pterodactyl
  338. offset 1200 1100 160
  339. }
  340.  
  341. vehicle ptero3 {
  342. instance pterodactyl
  343. offset 1000 1000 240
  344. }
  345.  
  346.