Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/resource2/data/levels/old/planettest.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: 1.1 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3?>
4
5<?lua
6  include("templates/spaceship_assff.oxt")
7?>
8
9<Level
10 name         = "Sample"
11 description  = "Just a few tests"
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/Starbox"
16  >
17
18    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
19      <events>
20        <spawn>
21          <EventTrigger delay=1>
22            <events>
23              <trigger>
24                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
25              </trigger>
26            </events>
27          </EventTrigger>
28        </spawn>
29      </events>
30    </ParticleSpawner>
31
32
33    <Planet position="2500,0,-9000" scale=1000 pitch=-90 mesh="earth.mesh" rotationaxis="0,0,1" rotationrate="0.1" atmospheresize=130.0f imagesize=1024.0f />
34    <Planet position="0,0,-5001" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
35    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
36
37  </Scene>
38</Level>
Note: See TracBrowser for help on using the repository browser.