Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Pickup generating works now after changing privacy settings of set methods in PickupSpawner.h. Added lots of debugging messages, spawnChildren does lead to a crash, still.

File size: 3.6 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    <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" >
80        <events>
81          <visibility>
82            <EventListener event="flying4" />
83
84          </visibility>
85        </events>
86        <attached>
87            <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" />
88        </attached>
89        <collisionShapes>
90            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
91        </collisionShapes>
92    </Pawn>
93
94
95    <!-----AsteroidMinable --->
96
97    <AsteroidMinable size=15 position="0,-500,0" />
98    <AsteroidMinable size=5 position="100,-500,100" />
99
100   
101
102
103  </Scene>
104</Level>
Note: See TracBrowser for help on using the repository browser.