Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2010, 8:55:13 AM (15 years ago)
Author:
dafrick
Message:

Merged presentation3 branch into trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/levels/presentation_pong.oxw

    r5929 r7163  
    33  include("stats.oxo")
    44  include("ponghud.oxo")
     5  include("templates/lodinformation.oxt")
    56?>
    67
     
    4647 gametype     = Pong
    4748>
    48   <AmbientSound source="ambient/mainmenu.wav" playOnLoad=true />
     49  <templates>
     50    <Template link=lodtemplate_default />
     51  </templates>
     52
     53  <AmbientSound source="ambient/mainmenu.ogg" playOnLoad=true />
    4954
    5055  <Scene
     
    5459    <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" />
    5560
    56 <?lua
    57 for i = 1, 10, 1
    58 do ?>
    59     <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
    60 <?lua
    61 end
    62 ?>
    63 
    64   <MovableEntity rotationrate=5 rotationaxis="0,0,1">
    65     <attached>
    66       <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
    67         <attached>
    68           <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
    69           <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
    70 
    71           <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    72           <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    73           <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    74           <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
    75           <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    76           <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    77           <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    78 
    79           <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    80           <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    81           <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    82           <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
    83           <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    84           <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    85           <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    86 
    87           <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
    88             <events>
    89               <play>
    90                 <EventListener event=pongcenter />
    91               </play>
    92             </events>
    93           </WorldSound>
    94 
    95 <?lua
    96 for i = 1, 15, 1
    97 do ?>
    98           <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
    99 <?lua
    100 end
    101 ?>
    102 
    103         </attached>
    104       </PongCenterpoint>
    105     </attached>
    106   </MovableEntity>
    107 
    108   <EventDispatcher>
    109     <targets>
    110       <EventTarget target=scoreeffect_right />
    111       <EventTarget target=scoreeffect_center />
    112     </targets>
    113     <events>
    114       <spawn>
    115         <EventFilter>
    116           <names>
    117             <EventName name=right />
    118           </names>
    119           <EventListener event=pongcenter />
    120         </EventFilter>
    121       </spawn>
    122     </events>
    123   </EventDispatcher>
    124   <EventDispatcher>
    125     <targets>
    126       <EventTarget target=scoreeffect_left />
    127       <EventTarget target=scoreeffect_center />
    128     </targets>
    129     <events>
    130       <spawn>
    131         <EventFilter>
    132           <names>
    133             <EventName name=left />
    134           </names>
    135           <EventListener event=pongcenter />
    136         </EventFilter>
    137       </spawn>
    138     </events>
    139   </EventDispatcher>
    140 
    141   <?lua
    142     dofile("includes/CuboidSpaceStation.lua")
    143   ?>
    144 
    145   <StaticEntity pitch=15>
    146     <attached>
    147       <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
    148         <attached>
    149           <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
    150             <attached>
    151               <?lua
    152                 createSpaceStationPar(0,2,1,2,1,4,1,50)
    153               ?>
    154             </attached>
    155           </StaticEntity>
    156         </attached>
    157       </MovableEntity>
    158     </attached>
    159   </StaticEntity>
    160 
    161   <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
    162     <attached>
    163       <Model scale=10 mesh="Carrier.mesh" />
    164       <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
    165       <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
    166     </attached>
    167   </StaticEntity>
    168 
    169   <StaticEntity pitch=70>
    170     <attached>
    171       <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
    172         <attached>
    173           <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
    174             <attached>
    175               <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
    176               <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
    177                 <attached>
    178                   <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
    179                 </attached>
    180               </MovableEntity>
    181               <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    182               <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    183               <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    184               <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    185             </attached>
    186           </StaticEntity>
    187         </attached>
    188       </MovableEntity>
    189     </attached>
    190   </StaticEntity>
    191 
    192 <?lua
    193 for i = 1, 10, 1
    194 do ?>
    195   <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    196     <attached>
    197       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    198     </attached>
    199   </MovableEntity>
    200   <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    201     <attached>
    202       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    203     </attached>
    204   </MovableEntity>
    205 
    206   <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    207     <attached>
    208       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    209     </attached>
    210   </MovableEntity>
    211   <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    212     <attached>
    213       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    214     </attached>
    215   </MovableEntity>
    216 
    217   <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    218     <attached>
    219       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    220     </attached>
    221   </MovableEntity>
    222   <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    223     <attached>
    224       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    225     </attached>
    226   </MovableEntity>
    227 <?lua
    228 end
    229 ?>
     61    <?lua
     62      for i = 1, 10, 1 do
     63    ?>
     64      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
     65    <?lua end ?>
     66
     67    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
     68      <attached>
     69        <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
     70          <attached>
     71            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
     72            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
     73
     74            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     75            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     76            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     77            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     78            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     79            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     80            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     81
     82            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     83            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     84            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     85            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     86            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     87            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     88            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     89
     90            <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
     91              <events>
     92                <play>
     93                  <EventListener event=pongcenter />
     94                </play>
     95              </events>
     96            </WorldSound>
     97
     98            <?lua
     99              for i = 1, 15, 1 do
     100            ?>
     101              <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
     102            <?lua end ?>
     103
     104          </attached>
     105        </PongCenterpoint>
     106      </attached>
     107    </MovableEntity>
     108
     109    <EventDispatcher>
     110      <targets>
     111        <EventTarget target=scoreeffect_right />
     112        <EventTarget target=scoreeffect_center />
     113      </targets>
     114      <events>
     115        <spawn>
     116          <EventFilter>
     117            <names>
     118              <EventName name=right />
     119            </names>
     120            <EventListener event=pongcenter />
     121          </EventFilter>
     122        </spawn>
     123      </events>
     124    </EventDispatcher>
     125    <EventDispatcher>
     126      <targets>
     127        <EventTarget target=scoreeffect_left />
     128        <EventTarget target=scoreeffect_center />
     129      </targets>
     130      <events>
     131        <spawn>
     132          <EventFilter>
     133            <names>
     134              <EventName name=left />
     135            </names>
     136            <EventListener event=pongcenter />
     137          </EventFilter>
     138        </spawn>
     139      </events>
     140    </EventDispatcher>
     141
     142    <?lua
     143      dofile("includes/CuboidSpaceStation.lua")
     144    ?>
     145
     146    <StaticEntity pitch=15>
     147      <attached>
     148        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
     149          <attached>
     150            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
     151              <attached>
     152                <?lua
     153                  createSpaceStationPar(0,2,1,2,1,4,1,50)
     154                ?>
     155              </attached>
     156            </StaticEntity>
     157          </attached>
     158        </MovableEntity>
     159      </attached>
     160    </StaticEntity>
     161
     162    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
     163      <attached>
     164        <Model scale=10 mesh="Carrier.mesh" />
     165        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
     166        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
     167      </attached>
     168    </StaticEntity>
     169
     170    <StaticEntity pitch=70>
     171      <attached>
     172        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
     173          <attached>
     174            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
     175              <attached>
     176                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
     177                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
     178                  <attached>
     179                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
     180                  </attached>
     181                </MovableEntity>
     182                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     183                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     184                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     185                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     186              </attached>
     187            </StaticEntity>
     188          </attached>
     189        </MovableEntity>
     190      </attached>
     191    </StaticEntity>
     192
     193    <?lua
     194      for i = 1, 10, 1 do
     195    ?>
     196      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     197        <attached>
     198          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     199        </attached>
     200      </MovableEntity>
     201      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     202        <attached>
     203          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     204        </attached>
     205      </MovableEntity>
     206
     207      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     208        <attached>
     209          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     210        </attached>
     211      </MovableEntity>
     212      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     213        <attached>
     214          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     215        </attached>
     216      </MovableEntity>
     217
     218      <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     219        <attached>
     220          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     221        </attached>
     222      </MovableEntity>
     223      <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     224        <attached>
     225          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     226        </attached>
     227      </MovableEntity>
     228    <?lua end ?>
    230229
    231230  </Scene>
Note: See TracChangeset for help on using the changeset viewer.