Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/resource2/data/levels/pickuptest.oxw @ 5802

Last change on this file since 5802 was 5654, checked in by rgrieder, 15 years ago
  • Implemented file management via resource manager and loading of resource locations via XML. Changes made:
    • SoundManager loads via memory stream rather than via file
    • Loader uses LuaState::includeFile() to load an XML file and passes the lua tag remover function to its LuaState.
    • ConfigFileManager still loads with hard paths because the files are required before Ogre gets created
  • Renamed LuaBind to LuaState, deSingletonised it and added new features:
    • doFile(), doString(), includeFile(), includeString() where include will preparse the string with a function provided with LuaState::setIncludeParser
    • Moved lua tags replace function to Loader (since it's actually an XML related task)
    • Using data_path/lua/LuaInitScript.lua to provide the following functions
      • logMessage(level, message)
      • doFile, dofile, include (all working with relative paths but within the same resource group)
  • Modified Script class to work with LuaState and fixed its XML Loader
  • Adjusted all level and include files (both "include" and "dofile" lua commands)
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5?>
6
7<Level
8 name         = "Presentation"
9 description  = "A simple testlevel"
10>
11  <Scene
12   ambientlight = "0.5, 0.5, 0.5"
13   skybox       = "Orxonox/skypanoramagen1"
14  >
15
16    <Template name="jumpTest" baseclass="Jump">
17        <Jump velocity="0,0,500" jumpsAvailable="1" guiImage="decal.jpg" guiText="TEST" />
18    </Template>
19    <Template name="jumpTest2" baseclass="Jump">
20        <Jump velocity="0,0,-500" jumpsAvailable="1" guiImage="dish.jpg" guiText="J2" />
21    </Template>
22    <Template name="jumpTest3" baseclass="Jump">
23        <Jump velocity="0,0,-500" jumpsAvailable="1" guiImage="sl_organic03.jpg" guiText="J3" />
24    </Template>
25    <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" />
26
27    <PickupSpawner item="jumpTest" triggerDistance="20" respawnTime="2" position="100, 0, 0">
28        <attached>
29            <Model mesh="sphere.mesh" scale="3.0" />
30            <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />
31        </attached>
32    </PickupSpawner>
33    <PickupSpawner item="jumpTest2" triggerDistance="20" respawnTime="5" position="140, 140, 140">
34        <attached>
35            <Model mesh="sphere.mesh" scale="3.0" />
36            <Billboard material="Examples/Flare" colour="1.0, 0.5, 0.3" scale="0.5" />
37        </attached>
38    </PickupSpawner>
39    <PickupSpawner item="jumpTest3" triggerDistance="20" respawnTime="5" position="180, 180, 180">
40        <attached>
41            <Model mesh="sphere.mesh" scale="3.0" />
42            <Billboard material="Examples/Flare" colour="0.5, 0.3, 1.0" scale="0.5" />
43        </attached>
44    </PickupSpawner>
45
46    <SpawnPoint position="200,200,200" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
47
48    <GlobalShader compositor="Bloom" visible=false>
49      <events>
50        <visibility>
51          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
52        </visibility>
53      </events>
54    </GlobalShader>
55  </Scene>
56</Level>
Note: See TracBrowser for help on using the repository browser.