Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/data/levels/Wagnis.oxw @ 12072

Last change on this file since 12072 was 12072, checked in by stadlero, 6 years ago

Added connections-string parser in WagnisGameboard which still needs work

File size: 4.0 KB
RevLine 
[12052]1<LevelInfo
2 name = "Wagnis"
3 description = "A clone of the iconic Risk."
4 tags = "minigame"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
[12067]14<!--
[12052]15<Template name=pongbatcameras defaults=0>
16  <PongBat>
17    <camerapositions>
18      <CameraPosition position="0,150,0" pitch=-90 absolute=true />
19      <CameraPosition position="0,50,160" drag=true mouselook=true />
20      <CameraPosition position="0,40,125" drag=true mouselook=true />
21      <CameraPosition position="0,30, 90" drag=true mouselook=true />
22    </camerapositions>
23  </PongBat>
24</Template>
25
26<Template name=pongbat>
27  <PongBat camerapositiontemplate=pongbatcameras>
28    <attached>
29      <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" />
[12067]30      <-Model roll=180 mesh="pongbat.mesh" scale=0.045 /->
[12052]31    </attached>
32  </PongBat>
[12067]33</Template> -->
[12052]34
[12067]35
36<Level plugins="wagnis" gametype="Deathmatch">
[12052]37  <templates>
38    <Template link=lodtemplate_default />
39  </templates>
40  <?lua include("includes/notifications.oxi") ?>
41
42  <Scene
43    ambientlight = "0.8, 0.8, 0.8"
44    skybox       = "Orxonox/skyBoxBasic"
45  >
46
47    <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"/>
48    <SpawnPoint position="100, 45, 75" lookat="0, 45, 75" />
49
[12072]50<WagnisGameboard position="0,0,0" connections_string="1=2,2=1-1000,1000=2  ">
51
52  <Provinces>
53
[12067]54    <WagnisProvince ID="1" continent="1" position="0,30,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
55      <attached>
56        <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
57      </attached>
58    </WagnisProvince>
[12052]59
[12067]60    <WagnisProvince ID="2" continent="1" position="0,40,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
61      <attached>
62        <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
63      </attached>
64    </WagnisProvince>
[12052]65
[12072]66    <WagnisProvince ID="1000" continent="1" position="0,40,40" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
67      <attached>
68        <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
69      </attached>
70    </WagnisProvince>
[12052]71
[12067]72  </Provinces>
73</WagnisGameboard>
74
75<!-->
76  <WagnisProvince ID="1" continent="1" position="0,30,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
[12052]77    <attached>
[12067]78      <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
[12052]79    </attached>
[12067]80 </WagnisProvince>
[12052]81
[12067]82  <WagnisProvince ID="1" continent="1" position="0,43,33" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
[12052]83    <attached>
[12067]84      <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
[12052]85    </attached>
[12067]86  </WagnisProvince>
[12052]87
[12067]88  <WagnisProvince ID="1" continent="1" position="0,22,28" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
[12052]89    <attached>
[12067]90      <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
[12052]91    </attached>
[12067]92  </WagnisProvince>
[12052]93
[12067]94  <WagnisProvince ID="1" continent="1" position="0,41,22" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>">
[12052]95    <attached>
[12067]96      <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" />
[12052]97    </attached>
[12067]98  </WagnisProvince>
99  -->
[12052]100
101<Model position="0,0,0" mesh="Coordinates.mesh" scale="20"/>
102
103
104
105   
106  </Scene>
107</Level>
108
Note: See TracBrowser for help on using the repository browser.