Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/data/levels/georgsparty.oxw @ 10422

Last change on this file since 10422 was 9711, checked in by georgr, 11 years ago

Mouse remote controlled from AutonomousDroneController. More info on console

File size: 1.3 KB
RevLine 
[9711]1<LevelInfo
2 name = "Georg's partylevel"
3 description = "Level for the coding tutorial."
4 tags = "tutorial"
5 screenshot = "codingtutorial.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level>
16  <templates>
17    <Template link=lodtemplate_default />
18  </templates>
19  <?lua include("includes/notifications.oxi") ?>
20
21  <Scene
22   ambientlight = "0.5, 0.5, 0.5"
23   skybox       = "Orxonox/Starbox"
24  >
25
26
27    <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" />
28
29
30    <?lua
31      for i = 1, 10, 1 do
32    ?>
33      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
34    <?lua end ?>
35
36   
37    <AutonomousDrone primaryThrust="10" auxiliaryThrust="10" rotationThrust="1" mass = 50 linearDamping = 0.9 angularDamping = 0.7 position="0,0,0">
38 <attached>
39    <Model scale="10" mesh="drone.mesh"/>
40  </attached>
41<collisionShapes>
42    <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
43  </collisionShapes>
44</AutonomousDrone>
45
46 <AutonomousDroneController>
47 </AutonomousDroneController>
48 
49
50  </Scene>
51</Level>
Note: See TracBrowser for help on using the repository browser.