Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2016, 5:50:36 PM (8 years ago)
Author:
tgidron
Message:

New Floor, Level HUD, Pickups work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tgidronFS16/data/levels/Hover.oxw

    r11184 r11192  
    2525MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
    2626?>
    27 <!--
    28 <Template name=mediumdamagehoverpickupRepresentation>
    29     <PickupRepresentation>
    30         <spawner-representation>
    31             <StaticEntity>
    32                 <attached>
    33                     <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 >
    34                         <attached>
    35                             <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 />
    36                         </attached>
    37                     </Billboard>
    38                 </attached>
    39             </StaticEntity>
    40         </spawner-representation>
    41     </PickupRepresentation>
    42 </Template>
    43 
    44 <Template name=damagehover baseclass=DamageBoostPickup>
    45   <DamageBoostPickup
    46     representation = "mediumdamagehoverpickup"
    47     duration = 10.0
    48     damageMultiplier = 5.0
    49     activationType = "immediate"
    50     durationType = "continuous"
    51   />
    52 </Template> -->
    5327
    5428<!-- Shrink Pickup Representation -->
     
    5933            <StaticEntity>
    6034                <attached>
    61                     <Billboard position="0,50,0" colour="1.0,0.55,1.0" material="Sphere2" scale=1>
     35                    <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.5>
    6236                        <attached>
    6337                            <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 />
     
    7549    representation = "smallshrinkpickup"
    7650    duration = 10.0
    77     shrinkFactor = 2.5
     51    shrinkFactor = 2
    7852    activaionType = "immediate"
    7953    durationType = "continuous"
     
    8862            <StaticEntity>
    8963                <attached>
    90                     <Billboard position="0,50,0" colour="0.99,0.96,0.52" material="Sphere2" scale=1>
     64                    <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.5>
    9165                        <attached>
    9266                            <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
     
    10478    duration = 10.0
    10579    speedAdd = 0.0
    106     SpeedMultiply = 50.0
     80    SpeedMultiply = 5.0
    10781    activationType = "immediate"
    10882    durationType = "continuous"
     
    11791            <StaticEntity>
    11892                <attached>
    119                     <Billboard position="0,50,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=1>
     93                    <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.5>
    12094                        <attached>
    12195                            <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
     
    135109
    136110<Template name=obstacle baseclass=Pawn>
    137     <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
     111    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=10000000000000 name=box RVName = "Box 4" >
    138112        <attached>
    139             <Model position="0,50,0" mesh="crate.mesh" scale3D="15,15,15" />
     113            <Model position="0,0,0" mesh="crate.mesh" scale3D="15,15,15" />
    140114        </attached>
    141115        <collisionShapes>
     
    145119</Template>
    146120
     121<!-- Ground Template -->
     122
     123<Template name=ground baseclass=StaticEntity>
     124    <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000000 friction=0.01 >
     125      <attached>
     126        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="300,20,300" />
     127      </attached>
     128      <collisionShapes>
     129        <BoxCollisionShape position="0,0,0" halfExtents="300,10,300" />
     130      </collisionShapes>
     131    </StaticEntity>
     132</Template>
    147133
    148134<Level
     
    156142  <?lua include("includes/notifications.oxi") ?>
    157143
    158 
    159   <?lua
    160       for i = 1, 10, 1 do
    161           for j = 1,10 ,1 do
    162   ?>
    163 
    164   <StaticEntity position="0,0,0" collisionType="static">
    165     <attached>
    166       <Model
    167         position="<?lua print(MAZE_CELL_SIZE*i)?>, -16, <?lua print(MAZE_CELL_SIZE*j)?>"
    168         scale3D="<?lua print(MAZE_CELL_SIZE*i)?>, 16, <?lua print(MAZE_CELL_SIZE*j)?>"
    169         mesh="CubeGround.mesh"
    170         />
    171     </attached>
    172       <collisionShapes>
    173         <BoxCollisionShape
    174           position="<?lua print(MAZE_CELL_SIZE*i)?>, <?lua print(MAZE_CELL_HEIGHT+1)?>, <?lua print(MAZE_CELL_SIZE*j)?>"
    175           halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>"
    176         />
    177         <BoxCollisionShape
    178           position="<?lua print(MAZE_CELL_SIZE*i)?>,-1,<?lua print(MAZE_CELL_SIZE*j)?>"
    179           halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>"
    180         />
    181       </collisionShapes>
    182 
    183   <?lua
    184       end
    185     end
    186    ?>
    187 
    188   </StaticEntity>
    189 
    190144  <Scene
    191145    ambientlight = "0.8, 0.8, 0.8"
     
    217171      inventoryRepresentation = "SmallShrink"
    218172    />
    219 <!--
    220     <PickupRepresentation
    221       name = "damagehover"
    222       pickupName = "Medium Damage Hover Pickup"
    223       pickupDescription = "Multiplies the ship damage with 5."
    224       spawnerTemplate = "mediumdamagehoverpickupRepresentation"
    225       inventoryRepresentation = "MediumDamageHover"
    226     /> -->
    227173
    228174    <StaticEntity position="0,0,0" collisionType="static">
     
    239185          pickuptemplateshrink=smallshrinkpickup
    240186          pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation
     187          groundtemplate=ground
    241188        />
    242         </attached>
    243        
     189
     190      </attached>
     191     
    244192    </StaticEntity>
    245193
     
    262210  </Scene>
    263211</Level>
    264 
    265 
    266 
    267 <!--<<Model
    268           position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
    269           scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
    270           mesh="ss_wall.mesh"
    271         />
    272       </attached>
    273      
    274       <collisionShapes>
    275         <BoxCollisionShape
    276           position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
    277           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    278         />
    279         <BoxCollisionShape
    280           position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
    281           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    282         />
    283       </collisionShapes> -->
Note: See TracChangeset for help on using the changeset viewer.