Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/WorldMap_HS18/data/levels/MapExample.oxw @ 12189

Last change on this file since 12189 was 12152, checked in by linggj, 6 years ago

it works

File size: 2.8 KB
Line 
1
2
3<LevelInfo
4 name = "MapExample"
5 description = "Shows a little map that should be understandable. Choose your level with right/left/space"
6 screenshot = "emptylevel.png"
7/>
8<!-- Some stuff which is needed to work -->
9<?lua
10 
11  include("templates/lodInformation.oxt")
12  include("templates/spaceshipAssff.oxt")
13  include("MapExampleHUD.oxo")
14  include("stats.oxo") 
15  include("templates/MapExample.oxt")
16 
17?>
18<Level
19gametype = StoryMode
20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25  <Scene
26    ambientlight = "0.2, 0.2, 0.2"
27    skybox       = "Orxonox/Starbox"
28  >
29    <!-- Here we initiate the Storymodecontroller which basically keeps track at which game we want to look at at the moment.
30    The Controller has a model attached which is set to invisible, but it's needed as an anchor. We set the cameraposition inhere too. -->
31    <StoryModeController position="0,0,0" collisionType="dynamic" mass=42000000 >
32      <attached>
33        <Model position="0,0,0" mesh="assff.mesh" scale=20  visible="false" />
34      </attached>
35      <CameraPosition position="0,0,0" direction="0, -1, 0" drag=false />
36      <collisionShapes>
37        <BoxCollisionShape position="0,0,0" halfExtents="3,1,10" />
38      </collisionShapes>
39    </StoryModeController>
40    <!-- Creates a few static entitys. Theire position will be important. Maybe you want to note them when you plan your own map. -->
41    <StaticEntity position="550,300,0" direction="0,0,-1" >
42      <attached>
43        <!-- Model 1: Will be linked to the model Map -->
44        <Billboard colour="1,0,0.05" position="0,0,0"  material="Flares/lensflare" scale=0.5 />
45        <Model position="0,0,20" mesh="ETH.mesh" scale=10  visible="true" lookat="550,300,21"/>
46        <!-- Model 2: linked to pong -->
47        <Billboard colour="1,1,0.05" position="50,0,0"  material="Flares/lensflare" scale=0.5 />
48        <Model position="50,0,20" mesh="PacmanGelb.mesh" scale=10  visible="true" lookat="100,0,20" />
49        <!-- Model 3: linked to Towerdefense -->
50        <Billboard colour="0,1,0.05" position="100,0,0"  material="Flares/lensflare" scale=0.5 />
51        <Model position="100,0,20"  lookat = "100,50,20" mesh="Tower.mesh" scale=10  visible="true" />
52        <!-- Model 4: linked to Orxobrows -->
53        <Billboard colour="1,1,1" position="150,0,0"  material="Flares/lensflare" scale=0.5 />
54        <Model position="150,0,20" mesh="orxo.mesh" scale=5 lookat="150,0,-120"  visible="true" />
55      </attached>
56    </StaticEntity>
57    <!-- some Stuff which is needed to work -->
58    <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"/>
59    <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, 1" spawnclass=StoryModeController pawndesign=MapExample />
60  </Scene>
61</Level>
62
Note: See TracBrowser for help on using the repository browser.