Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2012, 11:47:19 PM (12 years ago)
Author:
jo
Message:

Created minimal working version for the TowerDefence module. The code compiles and the level runs. Unfortunately an 'Playfield_ME.mesh' cannot be loaded on my machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/data/levels/towerDefense.oxw

    r9109 r9112  
     1<!-- TODO: Update the level's image-->
    12<LevelInfo
    23 name = "Tower Defense"
    3  description = "A level with not much in it."
    4  tags = "test"
     4 description = "Defend your Spacestation from incoming waves."
     5 tags = "gametype"
    56 screenshot = "emptylevel.png"
    67/>
     
    1213?>
    1314
     15<?lua
     16  include("templates/spaceshipAssff.oxt")
     17  include("templates/spaceshipPirate.oxt")
     18?>
     19
     20<!--  Hallo erstmal.
     21Ich habe das Grundgerüst des Levels mal zum Laufen gebracht.
     22Bei mir hat es das Playfield_ME.mesh allerdings nicht angezeigt; deswegen habe ich mit dem crate.mesh als testobjekt gearbeitet.
     23Das Level macht genau das was ihr vermutlich erreichen wolltet. Wahrscheinlich wird die Funktionalität der "statischen Kamera" aber
     24bloß in einer abgewandelten Art umgesetzt: In Pong und Tetris sind die Kameras nicht an das Spielfeld, sondern an ein ControllableEntity,
     25das vom Spieler gesteuert wird gekoppelt.
     26-->
     27
    1428<!-- Specify the position of the camera -->
    1529<Template name=playfieldcameras defaults=0>
    16   <ControllableEntity>
     30  <Pawn>
    1731    <camerapositions>
    18       <CameraPosition position="0,30,0" pitch=-90 absolute=true />
     32      <CameraPosition position="-200,0,600" absolute=true />
    1933    </camerapositions>
    20   </ControllableEntity>
     34  </Pawn>
    2135</Template>
    2236
    2337<!-- Loads the playfield mesh -->
     38<!-- TODO: why don't you add Playfield_ME.mesh to the data repository ? : /orxonox/data_extern/models -->
     39
    2440<Template name=playfield>
    25   <ControllableEntity camerapositiontemplate=playfieldcameras>
     41  <Pawn camerapositiontemplate=playfieldcameras>
    2642    <attached>
    27       <Model position="0,0,0" mesh="Playfield_ME.mesh" scale3D="10,10,10" />
     43      <Model position="0,0,0" mesh="Playfield_ME.mesh" scale3D="10,10,10" /> <!-- crate.mesh -->
    2844    </attached>
    29   </ControllableEntity>
     45  </Pawn>
    3046</Template>
    3147
    32 <Level gametype = "Deathmatch">
    33   <templates>
    34     <Template link=lodtemplate_default />
    35   </templates>
    36  
    37   <?lua include("includes/notifications.oxi") ?>
    38 
    39   <Scene
    40    ambientlight = "0.5, 0.5, 0.5"
    41    skybox       = "Orxonox/skypanoramagen1"
    42   >
    43    
    44         <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" />
    45 
    46     <SpawnPoint spawnclass=SpaceShip pawndesign=playfield position="0, 10, 0" orientation="0, 0, 0" />
    47 <!--
    48     <MovableEntity rotationrate=5 rotationaxis="0,0,1">
    49       <attached>
    50                   <!-- template wird im centerpoint verwendet (glaub?) -->
    51 <!--
    52         <TowerDefenseCenterpoint
    53                         name=towerdefensecenter
    54                         dimension="200,120"
    55                         >
    56                        
    57                         <!--
    58                         hier fehlt noch was:
    59                         balltemplate=pongball
    60                         -->
    61 <!--                   
    62         </PongCenterpoint>
    63       </attached>
    64     </MovableEntity>
    65         -->
    66        
    67   </Scene>
    68 </Level>
    6948
    7049
    71 <!--
     50
     51
    7252<Level gametype = "TowerDefense">
    7353  <templates>
     
    8363
    8464    <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"/>
    85    
    86    
    87         <StaticEntity position="0,0,0" direction="0,0,0" collistionType=static mass=100000>
    88                 <attached>
    89                         <Model position="0,0,0" mesh="Playfield_ME.mesh" scale3D="10,10,10" />
    90                 </attached>
    91         </StaticEntity>
     65    <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
     66    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
     67 
    9268
     69    <!--StaticEntity position="0,0,0" direction="0,0,0" collistionType=static mass=100000>
     70        <attached>
     71            <Model position="0,0,0" mesh="Playfield_ME.mesh" scale3D="10,10,10" />
     72        </attached>
     73    </StaticEntity-->
    9374
    9475  </Scene>
    9576</Level>
    9677
    97 -->
    98 
    99 
Note: See TracChangeset for help on using the changeset viewer.