Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/AsteroidMining_HS17/data/levels/AsteroidFarming.oxw @ 11640

Last change on this file since 11640 was 11640, checked in by remartin, 6 years ago

Das Aufteilen funktioniert nun gut. AsteroidField fertiggestellt und mit dokumentieren begonnen.

File size: 4.0 KB
Line 
1<LevelInfo
2 name = "AsteroidFarming"
3 description = "Testing the Asteroid Mining Project, PPS HS 17"
4 tags = "test"
5 screenshot = "AsteroidFarming.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDPickupTemplate.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff.oxt")
16  include("templates/spaceshipPirate.oxt")
17    include("templates/pickupRepresentationTemplates.oxt")
18?>
19
20<Level>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26
27  <Scene
28    ambientlight = "0.8, 0.8, 0.8"
29    skybox       = "Orxonox/Starbox"
30  >
31
32  <?lua
33      include("includes/pickups.oxi")
34  ?>
35
36    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
37    <SpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
38   
39
40
41
42     <!-- Asteroid Display: -->
43      <Model position="0,  0,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast1.mesh" />
44      <Model position="0, 20,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast2.mesh" />
45      <Model position="0, 40,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast3.mesh" />
46      <Model position="0, 60,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast4.mesh" />
47      <Model position="0,-20,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast5.mesh" />
48      <Model position="0,-40,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast6.mesh" />
49      <Model position="0,-60,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_ice.mesh" />
50      <Model position="0,-80,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_UV.mesh" />
51
52     <!-- Display some pickup, 'Meta' -->
53    <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
54    <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
55    <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
56    <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
57
58    <!-- Drone pickup -->
59   
60    <PickupSpawner pickup=dronepickup position="-25,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
61
62
63    <!-- @Objects: 4 boxes (uncontrolled pawns) Trying to understand the pickup generation-->
64    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
65        <events>
66          <visibility>
67            <EventListener event="flying4" />
68          </visibility>
69        </events>
70        <attached>
71            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
72        </attached>
73        <collisionShapes>
74            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
75        </collisionShapes>
76
77    </Pawn>
78
79    <!----Just a box with different mesh-->
80    <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" >
81        <events>
82          <visibility>
83            <EventListener event="flying4" />
84
85          </visibility>
86        </events>
87        <attached>
88            <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" />
89        </attached>
90        <collisionShapes>
91            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
92        </collisionShapes>
93    </Pawn>
94
95
96    <!-----AsteroidMinable --->
97    <AsteroidMinable size=15 position="0,-500,0" />
98    <AsteroidMinable size=5 position="100,-500,100" />
99    <AsteroidMinable size=50 position="500,-500, 500" />
100    <AsteroidMinable size=30 position="-100, -500, -100" velocity= "0, -30, 0"/>
101
102    <!--- SpicedAsteroidField --->
103    <SpicedAsteroidField count=30 mDensity= 0.5 maxSize=40 minSize=1 position="5000, 0, 0" radius=1000/>
104
105
106  </Scene>
107</Level>
Note: See TracBrowser for help on using the repository browser.