Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_HS18/SuperOrxoBros_HS18/data/levels/AsteroidFarming.oxw @ 12175

Last change on this file since 12175 was 12175, checked in by siramesh, 5 years ago

Super Orxo Bros (Sidharth Ramesh, Nisa Balta, Jeff Ren)

File size: 5.1 KB
Line 
1<LevelInfo
2 name = "AsteroidFarming"
3 description = "Testing the Asteroid Mining Project, PPS HS 17"
4 tags = "test, showcase"
5 screenshot = "asteroids.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.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
21<WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" />
22
23
24<Level>
25  <templates>
26    <Template link=lodtemplate_default />
27  </templates>
28
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
33    skybox       = "Orxonox/Starbox"
34    hasPhysics = true
35  >
36
37
38  <?lua
39      include("includes/pickups.oxi")
40  ?>
41
42    <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"/>
43
44    <SpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
45   
46
47     <!-- Asteroid Display: -->
48      <Model position="0,  0,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast1.mesh" />
49      <Model position="0, 20,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast2.mesh" />
50      <Model position="0, 40,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast3.mesh" />
51      <Model position="0, 60,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast4.mesh" />
52      <Model position="0,-20,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast5.mesh" />
53      <Model position="0,-40,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast6.mesh" />
54      <Model position="0,-60,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_ice.mesh" />
55      <Model position="0,-80,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_UV.mesh" />
56
57     <!-- Display some pickup, 'Meta' -->
58    <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
59    <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
60    <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
61    <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
62
63    <!-- Drone pickup -->
64    <PickupSpawner pickup=dronepickup position="-25,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
65
66
67    <!-- @Objects: 4 boxes (uncontrolled pawns) Trying to understand the pickup generation-->
68    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
69        <events>
70          <visibility>
71            <EventListener event="flying4" />
72          </visibility>
73        </events>
74        <attached>
75            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
76        </attached>
77        <collisionShapes>
78            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
79        </collisionShapes>
80
81    </Pawn>
82
83    <!----Just a box with different mesh-->
84    <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" >
85        <events>
86          <visibility>
87            <EventListener event="flying4" />
88
89          </visibility>
90        </events>
91        <attached>
92            <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" />
93        </attached>
94        <collisionShapes>
95            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
96        </collisionShapes>
97    </Pawn>
98
99
100    <!-- AsteroidMinable -->
101    <AsteroidMinable size=15 position="0,-500,0" />
102    <AsteroidMinable size=5 position="100,-500,100" />
103    <AsteroidMinable size=50 position="500,-500, 500" />
104    <AsteroidMinable size=30 position="-100, -500, -100" velocity= "0, -30, 0"/>
105
106    <!-- SpicedAsteroidField -->
107    <SpicedAsteroidField count=30 mDensity= 0.5 maxSize=40 minSize=1 position="5000, 0, 0" radius=1000 velocity="0,0,0"/>
108
109
110    <!-- Asteroid Belt with a planet -->
111
112    <SpicedAsteroidBelt position="-15000,0,0" mDensity=0.3 segments=50 minSize=1 maxSize=50 radius0=7190 radius1 = 7800 count=250 tiltBy=0.5 tiltAt=0/>
113    <MovableEntity
114      position="-15000,0,0"
115      scale="5000"
116      collisionType="dynamic"
117      linearDamping="0.8"
118      angularDamping="0"
119      mass="10000000"
120      pitch="0"
121      rotationaxis="1,0,0"
122      rotationrate="1.0"
123      collisiondamage = 2
124      enablecollisiondamage = true
125    >
126        <attached>
127            <Planet
128              mesh="planets/muunilinst.mesh"
129              atmosphere="atmosphere1"
130              atmospheresize="80.0f"
131              imagesize="1024.0f"
132            >     
133              <attached>
134                <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
135              </attached>
136              <collisionShapes>
137                <SphereCollisionShape radius="5000" position="0,0,0" />
138              </collisionShapes>
139            </Planet>
140        </attached>
141    </MovableEntity>
142
143
144
145
146  </Scene>
147</Level>
Note: See TracBrowser for help on using the repository browser.