Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw @ 12329

Last change on this file since 12329 was 12329, checked in by pomselj, 5 years ago

new, better camera

File size: 4.3 KB
Line 
1<LevelInfo
2 name = "OrxoBlox"
3 description = "A clone version of the BBTAN game."
4 tags = "minigame"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("OrxoBloxHUD.oxo")
12  include("templates/lodInformation.oxt")
13?>
14
15<?lua
16  include("templates/spaceshipAssff2.oxt")
17  include("templates/spaceshipPirate.oxt")
18  include("templates/spaceshipAsteroids2D.oxt")
19  include("templates/spaceshipOrxoBlox.oxt")
20  include("templates/enemyInvader.oxt")
21  include("overlays/Asteroids2DHUD.oxo")
22  include("templates/asteroidsAsteroids2D.oxt")
23?>
24
25<Template name=OrxoBloxbatcameras defaults=0>
26  <OrxoBloxBat>
27    <camerapositions>
28      <CameraPosition position="0,150,0" pitch=-90 absolute=true />
29      <CameraPosition position="0,50,160" drag=true mouselook=true />
30      <CameraPosition position="0,40,125" drag=true mouselook=true />
31      <CameraPosition position="0,30, 90" drag=true mouselook=true />
32    </camerapositions>
33  </OrxoBloxBat>
34</Template>
35
36<Template name=OrxoBloxball>
37  <OrxoBloxBall
38   defScoreSound = "sounds/PlayerWinScore_cut.ogg"
39   defBatSound = "sounds/Button.ogg"
40   defBoundarySound = "sounds/Button.ogg">
41    <attached>
42      <Model mesh="sphere.mesh" scale=2 />
43      <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
44      <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
45      <Light type=point diffuse="1.0, 1.0, 0.5" specular="1.0, 1.0, 0.5" attenuation="1200, 1.0, 0.0035, 0.00005" />
46      <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn />
47    </attached>
48    <eventlisteners>
49      <EventTarget target=hiteffect />
50    </eventlisteners>
51  </OrxoBloxBall>
52</Template>
53
54<Template name=OrxoBloxStonescameras defaults=0>
55    <OrxoBloxStones>
56      <camerapositions>
57        <CameraPosition position="55,75,200" absolute=true />
58      </camerapositions>
59    </OrxoBloxStones>
60  </Template>
61 
62  <Template name=OrxoBloxstone>
63    <OrxoBloxStones camerapositiontemplate=OrxoBloxStonescameras >
64      <attached>
65        <Model position="0,0,0" mesh="CuboidBody.mesh" scale=4.5 />
66        <Model position="0,0,0" mesh="cube_orange.mesh" scale=4.3 />
67      </attached>
68    </OrxoBloxStones>
69  </Template>
70 
71  <Template name=OrxoBloxWallcameras defaults=0>
72    <OrxoBloxWall>
73      <camerapositions>
74        <CameraPosition position="55,75,200" absolute=true />
75        <!--CameraPosition position="0,50,160" drag=true mouselook=true />
76        <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /-->
77      </camerapositions>
78    </OrxoBloxWall>
79  </Template>
80 
81  <Template name=OrxoBloxwall>
82    <OrxoBloxWall camerapositiontemplate=OrxoBloxWallcameras>
83    </OrxoBloxWall>
84  </Template>
85
86
87<Level
88  plugins = "OrxoBlox"
89 gametype = "OrxoBlox"
90>
91
92 <templates>
93    <Template link=lodtemplate_default />
94  </templates>
95  <?lua include("includes/notifications.oxi") ?>
96
97  <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
98 
99
100  <Scene
101   ambientlight = "0.5, 0.5, 0.5"
102   skybox       = "Orxonox/skyBoxBasic"
103  >
104    <!-- <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"/> -->
105    <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
106    <SpawnPoint team=0 position="0,150,0" lookat="0,0,0" spawnclass= OrxoBloxShip pawndesign=spaceshipasteroids2d/>
107
108    <!--<Model mesh="axes.mesh" scale=10 position="0,0,0" /> -->
109
110
111    <MovableEntity rotationrate=0 rotationaxis="0,0,1">
112      <attached>
113          <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="120,100" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25 StoneTemplate=OrxoBloxstone WallTemplate=OrxoBloxwall>
114          <attached>
115            <!-- Balken die das Spielfeld begrenzen. -->
116            <Model position="0,0,-50" mesh="cube.mesh" scale3D="60,1,1" />
117            <Model position="60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
118            <Model position="-60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
119          </attached>
120        </OrxoBloxCenterpoint>
121      </attached>
122    </MovableEntity>   
123  </Scene>
124</Level>
125
Note: See TracBrowser for help on using the repository browser.