Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/MouseAPI_FS19/data/levels/MouseAPIExample.oxw @ 12271

Last change on this file since 12271 was 12271, checked in by tkuonen, 5 years ago

Begin extending MouseAPI

File size: 1.2 KB
Line 
1<LevelInfo
2 name = "MouseAPI Example"
3 description = "A level to test our MouseAPI"
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14
15
16<Level >
17  <templates>
18    <Template link=lodtemplate_default />
19  </templates>
20       
21  <Scene
22    ambientlight = "0.8, 0.8, 0.8"
23    skybox       = "Orxonox/Starbox"
24  >
25 
26   <CameraPosition position="0,0,0" lookat="100,0,0" absolute=true drag=false mouselook=false/>
27 
28
29    <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"/>
30    <SpawnPoint team=0 position="0,0,0" lookat="100,0,0"/>
31   
32
33<MouseAPIExample position="100,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 friction=0.01 cameraOffset=100>
34                        <camerapositions>
35                                <CameraPosition position="0,0,0" absolute=true mouselook=false drag=false direction="1,0,0"/>
36                        </camerapositions>
37            <attached>
38                <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
39            </attached>
40            <collisionShapes>
41                <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
42            </collisionShapes>
43       
44</MouseAPIExample>
45
46
47   
48  </Scene>
49</Level>
50
Note: See TracBrowser for help on using the repository browser.