Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12256 for code


Ignore:
Timestamp:
Mar 28, 2019, 3:39:56 PM (5 years ago)
Author:
jeromela
Message:

Level Hintergrund von pong uebernommen

Location:
code/branches/OrxoBlox_FS19/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw

    r12215 r12256  
     1<! ------ Background & Layout for the Level------ />
     2
    13<LevelInfo
    24 name = "Orxoblox"
     
    79
    810<?lua
     11  include("HUDTemplates3.oxo")
    912  include("stats.oxo")
    10   include("HUDTemplates3.oxo")
     13  include("pongHUD.oxo")
    1114  include("templates/lodInformation.oxt")
    1215?>
    1316
    14 <?lua
    15   include("templates/spaceshipEscort.oxt")
    16 ?>
     17<Template name=pongbatcameras defaults=0>
     18  <PongBat>
     19    <camerapositions>
     20      <CameraPosition position="0,150,0" pitch=-90 absolute=true />
     21      <CameraPosition position="0,50,160" drag=true mouselook=true />
     22      <CameraPosition position="0,40,125" drag=true mouselook=true />
     23      <CameraPosition position="0,30, 90" drag=true mouselook=true />
     24    </camerapositions>
     25  </PongBat>
     26</Template>
     27
     28<Template name=pongbat>
     29  <PongBat camerapositiontemplate=pongbatcameras>
     30    <attached>
     31      <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" />
     32      <!--Model roll=180 mesh="pongbat.mesh" scale=0.045 /-->
     33    </attached>
     34  </PongBat>
     35</Template>
     36
     37<Template name=pongball>
     38  <PongBall
     39   defScoreSound = "sounds/PlayerWinScore_cut.ogg"
     40   defBatSound = "sounds/Button.ogg"
     41   defBoundarySound = "sounds/Button.ogg">
     42    <attached>
     43      <Model mesh="sphere.mesh" scale=2 />
     44      <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
     45      <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" />
     46      <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" />
     47      <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn />
     48    </attached>
     49    <eventlisteners>
     50      <EventTarget target=hiteffect />
     51    </eventlisteners>
     52  </PongBall>
     53</Template>
     54
     55
    1756
    1857<Level>
    19   <templates>
     58 plugins = "orxoblox"
     59 gametype = "Orxoblox"
     60
     61
     62 <templates>
    2063    <Template link=lodtemplate_default />
    2164  </templates>
    2265  <?lua include("includes/notifications.oxi") ?>
    2366
     67  <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
     68  <PongBot />
     69
    2470  <Scene
    25     ambientlight = "0.8, 0.8, 0.8"
    26     skybox       = "Orxonox/Starbox"
     71   ambientlight = "0.5, 0.5, 0.5"
     72   skybox       = "Orxonox/skyBoxBasic"
    2773  >
    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="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    31    
    32 
    33 
    34 
    35    <SpaceShip position="1000,-75,1" lookat="0,0,0">
    36       <templates>
    37         <Template link=spaceshipswallow />
    38       </templates>
    39       <controller>
    40         <WaypointController team=10 accuracy=200>
    41           <waypoints>
    42             <Model mesh="cube.mesh" scale=0 position="1000,-75,0" />
    43             <Model mesh="cube.mesh" scale=0 position="650,-75,650" />
    44             <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
    45             <Model mesh="cube.mesh" scale=0 position="-700,-75,650" />
    46             <Model mesh="cube.mesh" scale=0 position="-1000,-75,0" />
    47             <Model mesh="cube.mesh" scale=0 position="-700,-75,-650" />
    48             <Model mesh="cube.mesh" scale=0 position="-55,-75,-1000" />
    49             <Model mesh="cube.mesh" scale=0 position="650,-75,-650" />
    50           </waypoints>
    51         </WaypointController>
    52       </controller>
    53     </SpaceShip>
     74    <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" />
     75
     76    <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" />
     77
     78    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
     79      <attached>
     80        <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
     81          <attached>
     82            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
     83            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
     84
     85            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     86            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     87            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     88            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     89            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     90            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     91            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     92
     93            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     94            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     95            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     96            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     97            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     98            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     99            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     100
     101<!-- TODO: Create a Pong Score Sound and include it here.
     102This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg -->
     103            <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/PongScore_cut.ogg" >
     104              <events>
     105                <play>
     106                  <EventListener event=pongcenter />
     107                </play>
     108              </events>
     109            </WorldSound-->
     110
     111            <?lua
     112              for i = 1, 15, 1 do
     113            ?>
     114              <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) ?> />
     115            <?lua end ?>
     116
     117          </attached>
     118        </PongCenterpoint>
     119      </attached>
     120    </MovableEntity>
     121
     122    <EventDispatcher>
     123      <targets>
     124        <EventTarget target=scoreeffect_right />
     125        <EventTarget target=scoreeffect_center />
     126      </targets>
     127      <events>
     128        <spawn>
     129          <EventFilter>
     130            <names>
     131              <EventName name=right />
     132            </names>
     133            <EventListener event=pongcenter />
     134          </EventFilter>
     135        </spawn>
     136      </events>
     137    </EventDispatcher>
     138    <EventDispatcher>
     139      <targets>
     140        <EventTarget target=scoreeffect_left />
     141        <EventTarget target=scoreeffect_center />
     142      </targets>
     143      <events>
     144        <spawn>
     145          <EventFilter>
     146            <names>
     147              <EventName name=left />
     148            </names>
     149            <EventListener event=pongcenter />
     150          </EventFilter>
     151        </spawn>
     152      </events>
     153    </EventDispatcher>
     154
     155    <?lua
     156      dofile("includes/CuboidSpaceStation.lua")
     157    ?>
     158
     159    <StaticEntity pitch=15>
     160      <attached>
     161        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
     162          <attached>
     163            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
     164              <attached>
     165                <?lua
     166                  createSpaceStationPar(0,2,1,2,1,4,1,50)
     167                ?>
     168              </attached>
     169            </StaticEntity>
     170          </attached>
     171        </MovableEntity>
     172      </attached>
     173    </StaticEntity>
     174
     175    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
     176      <attached>
     177        <Model scale=10 mesh="Carrier.mesh" />
     178        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
     179        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
     180      </attached>
     181    </StaticEntity>
     182
     183    <StaticEntity pitch=70>
     184      <attached>
     185        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
     186          <attached>
     187            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
     188              <attached>
     189                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
     190                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
     191                  <attached>
     192                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
     193                  </attached>
     194                </MovableEntity>
     195                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     196                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     197                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     198                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     199              </attached>
     200            </StaticEntity>
     201          </attached>
     202        </MovableEntity>
     203      </attached>
     204    </StaticEntity>
     205
     206    <?lua
     207      for i = 1, 10, 1 do
     208    ?>
     209      <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) ?>">
     210        <attached>
     211          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     212        </attached>
     213      </MovableEntity>
     214      <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) ?>">
     215        <attached>
     216          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     217        </attached>
     218      </MovableEntity>
     219
     220      <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) ?>">
     221        <attached>
     222          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     223        </attached>
     224      </MovableEntity>
     225      <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) ?>">
     226        <attached>
     227          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     228        </attached>
     229      </MovableEntity>
     230
     231      <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) ?>">
     232        <attached>
     233          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     234        </attached>
     235      </MovableEntity>
     236      <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) ?>">
     237        <attached>
     238          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     239        </attached>
     240      </MovableEntity>
     241    <?lua end ?>
    54242   
    55    <SpaceShip position="-500,-500,-400" lookat="0,0,0">
    56       <templates>
    57         <Template link=spaceshippirate />
    58       </templates>
    59       <controller>
    60         <WaypointController team=10>
    61           <waypoints>
    62             <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" />
    63             <Model mesh="cube.mesh" scale=0 position="-700,-150,650" />
    64             <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
    65             <Model mesh="cube.mesh" scale=0 position="650,100,650" />         
    66             <Model mesh="cube.mesh" scale=0 position="1000,150,0" />
    67             <Model mesh="cube.mesh" scale=0 position="650,100,-650" />
    68             <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" />
    69             <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" />
    70           </waypoints>
    71         </WaypointController>
    72       </controller>
    73     </SpaceShip>
    74    
    75        <SpaceShip position="-700,200,651" lookat="1,0,0">
    76       <templates>
    77         <Template link=spaceshipghost />
    78       </templates>
    79       <controller>
    80         <WaypointController team=10 accuracy=300>
    81           <waypoints>
    82             <Model mesh="cube.mesh" scale=0 position="-700,200,650" />
    83             <Model mesh="cube.mesh" scale=0 position="-55,100,1000" />
    84             <Model mesh="cube.mesh" scale=0 position="650,0,650" />         
    85             <Model mesh="cube.mesh" scale=0 position="1000,-100,0" />
    86             <Model mesh="cube.mesh" scale=0 position="650,0,-650" />
    87             <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" />
    88             <Model mesh="cube.mesh" scale=0 position="-700,200,-650" />
    89             <Model mesh="cube.mesh" scale=0 position="-1000,300,0" />
    90           </waypoints>
    91         </WaypointController>
    92       </controller>
    93     </SpaceShip>
    94    
    95     <SpaceShip position="1000,-75,0" lookat="0,0,0">
    96       <templates>
    97         <Template link=spaceshipHtwo />
    98       </templates>
    99       <controller>
    100         <WaypointController team=10>
    101           <waypoints>
    102             <Model mesh="cube.mesh" scale=0 position="400,240,400" />
    103             <Model mesh="cube.mesh" scale=0 position="-55,240,700" />
    104             <Model mesh="cube.mesh" scale=0 position="-500,240,400" />
    105             <Model mesh="cube.mesh" scale=0 position="-700,240,0" />
    106             <Model mesh="cube.mesh" scale=0 position="-500,240,-400" />
    107             <Model mesh="cube.mesh" scale=0 position="-55,240,-700" />
    108             <Model mesh="cube.mesh" scale=0 position="400,240,-400" />
    109             <Model mesh="cube.mesh" scale=0 position="700,240,0" />
    110           </waypoints>
    111         </WaypointController>
    112       </controller>
    113     </SpaceShip>
    114 
    115      
    116243  </Scene>
    117244</Level>
  • code/branches/OrxoBlox_FS19/data/levels/pong.oxw

    r10624 r12256  
    5050  </PongBall>
    5151</Template>
    52 
    5352
    5453<Level
  • code/branches/OrxoBlox_FS19/data/levels/tetris.oxw

    r10624 r12256  
    125125      </controller>
    126126    </SpaceShip>
    127    
    128    <SpaceShip position="-500,-500,-400" lookat="0,0,0">
    129       <templates>
    130         <Template link=spaceshippirate />
    131       </templates>
    132       <controller>
    133         <WaypointController team=10>
    134           <waypoints>
    135             <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" />
    136             <Model mesh="cube.mesh" scale=0 position="-700,-150,650" />
    137             <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
    138             <Model mesh="cube.mesh" scale=0 position="650,100,650" />         
    139             <Model mesh="cube.mesh" scale=0 position="1000,150,0" />
    140             <Model mesh="cube.mesh" scale=0 position="650,100,-650" />
    141             <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" />
    142             <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" />
    143           </waypoints>
    144         </WaypointController>
    145       </controller>
    146     </SpaceShip>
    147    
    148        <SpaceShip position="-700,200,651" lookat="1,0,0">
    149       <templates>
    150         <Template link=spaceshipghost />
    151       </templates>
    152       <controller>
    153         <WaypointController team=10 accuracy=300>
    154           <waypoints>
    155             <Model mesh="cube.mesh" scale=0 position="-700,200,650" />
    156             <Model mesh="cube.mesh" scale=0 position="-55,100,1000" />
    157             <Model mesh="cube.mesh" scale=0 position="650,0,650" />         
    158             <Model mesh="cube.mesh" scale=0 position="1000,-100,0" />
    159             <Model mesh="cube.mesh" scale=0 position="650,0,-650" />
    160             <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" />
    161             <Model mesh="cube.mesh" scale=0 position="-700,200,-650" />
    162             <Model mesh="cube.mesh" scale=0 position="-1000,300,0" />
    163           </waypoints>
    164         </WaypointController>
    165       </controller>
    166     </SpaceShip>
    167    
    168     <SpaceShip position="1000,-75,0" lookat="0,0,0">
    169       <templates>
    170         <Template link=spaceshipHtwo />
    171       </templates>
    172       <controller>
    173         <WaypointController team=10>
    174           <waypoints>
    175             <Model mesh="cube.mesh" scale=0 position="400,240,400" />
    176             <Model mesh="cube.mesh" scale=0 position="-55,240,700" />
    177             <Model mesh="cube.mesh" scale=0 position="-500,240,400" />
    178             <Model mesh="cube.mesh" scale=0 position="-700,240,0" />
    179             <Model mesh="cube.mesh" scale=0 position="-500,240,-400" />
    180             <Model mesh="cube.mesh" scale=0 position="-55,240,-700" />
    181             <Model mesh="cube.mesh" scale=0 position="400,240,-400" />
    182             <Model mesh="cube.mesh" scale=0 position="700,240,0" />
    183           </waypoints>
    184         </WaypointController>
    185       </controller>
    186     </SpaceShip>
     127
     128
     129   
    187130   
    188131   
Note: See TracChangeset for help on using the changeset viewer.