Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2017, 4:07:37 PM (7 years ago)
Author:
patricwi
Message:

Merged tgidronFS16

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

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

    r11052 r11493  
    33 description = "Level for Minigame Hover"
    44 tags = "minigame"
    5  screenshot = "emptylevel.png"
     5 screenshot = "hover.png"
    66/>
    77
     
    2020<?lua
    2121MAZE_NUM_CELLS = 10
    22 MAZE_CELL_SIZE = 100
    23 MAZE_CELL_HEIGHT = 30
     22MAZE_CELL_SIZE = 600
     23MAZE_CELL_HEIGHT = 180
     24MAZE_WALL_THICKNESS = 10
    2425MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
    2526?>
     27
     28<!-- Shrink Pickup Representation -->
     29
     30<Template name=smallshrinkpickupRepresentation>
     31    <PickupRepresentation>
     32        <spawner-representation>
     33            <StaticEntity>
     34                <attached>
     35                    <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.5>
     36                        <attached>
     37                            <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 />
     38                        </attached>
     39                    </Billboard>
     40                </attached>
     41            </StaticEntity>
     42        </spawner-representation>
     43    </PickupRepresentation>
     44</Template>
     45
     46
     47<Template name=smallshrinkpickup baseclass=ShrinkPickup>
     48  <ShrinkPickup
     49    representation = "smallshrinkpickup"
     50    duration = 10.0
     51    shrinkFactor = 2
     52    activaionType = "immediate"
     53    durationType = "continuous"
     54  />
     55</Template>
     56
     57<!-- Speed Pickup Representation -->
     58
     59<Template name=hugespeedpickupRepresentation>
     60    <PickupRepresentation>
     61        <spawner-representation>
     62            <StaticEntity>
     63                <attached>
     64                    <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.5>
     65                        <attached>
     66                            <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
     67                        </attached>
     68                    </Billboard>
     69                </attached>
     70            </StaticEntity>
     71        </spawner-representation>
     72    </PickupRepresentation>
     73</Template>
     74
     75<Template name=hugespeedpickup baseclass=SpeedPickup>
     76  <SpeedPickup
     77    representation = "hugespeedpickup"
     78    duration = 10.0
     79    speedAdd = 0.0
     80    SpeedMultiply = 5.0
     81    activationType = "immediate"
     82    durationType = "continuous"
     83  />
     84</Template>
     85
     86<!-- Destroy Carrier Pickup Representation -->
     87
     88<Template name=destroyhoverpickupRepresentation>
     89    <PickupRepresentation>
     90        <spawner-representation>
     91            <StaticEntity>
     92                <attached>
     93                    <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.5>
     94                        <attached>
     95                            <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
     96                        </attached>
     97                    </Billboard>
     98                </attached>
     99            </StaticEntity>
     100        </spawner-representation>
     101    </PickupRepresentation>
     102</Template>
     103
     104<Template name=destroyhoverpickup baseclass=MetaPickup>
     105  <MetaPickup representation="destroyhover" metaType="destroyCarrier" />
     106</Template>
     107
     108<!-- Obstacle (crate) Template -->
     109
     110<Template name=obstacle baseclass=Pawn>
     111    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=10000000000000 name=box RVName = "Box 4" >
     112        <attached>
     113            <Model position="0,0,0" mesh="crate.mesh" scale3D="15,15,15" />
     114        </attached>
     115        <collisionShapes>
     116            <BoxCollisionShape position="0,0,0" halfExtents="70,70,70" />
     117        </collisionShapes>
     118    </Pawn>
     119</Template>
     120
     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>
    26133
    27134<Level
     
    32139    <Template link=lodtemplate_default />
    33140  </templates>
     141
    34142  <?lua include("includes/notifications.oxi") ?>
    35143
     
    37145    ambientlight = "0.8, 0.8, 0.8"
    38146    skybox       = "Orxonox/Starbox"
    39     gravity      = "0, -200, 0"
     147    gravity      = "0, -300, 0"
    40148  >
     149
     150    <PickupRepresentation
     151      name = "destroyhover"
     152      pickupName = "Destroy Hover Pickup"
     153      pickupDescription = "destroys you."
     154      spawnerTemplate = "destroyhoverpickupRepresentation"
     155      inventoryRepresentation = "destroyHoverPickup"
     156    />
     157
     158    <PickupRepresentation
     159      name = "hugespeedpickup"
     160      pickupName = "Huge Speed Boost"
     161      pickupDescription = "Multiplies Speed of the Ship by a huge amount."
     162      spawnerTemplate = "hugespeedpickupRepresentation"
     163      inventoryRepresentation = "HugeSpeed"
     164    />
     165
     166    <PickupRepresentation
     167      name = "smallshrinkpickup"
     168      pickupName = "Small Shrink"
     169      pickupDescription = "Shrinks the ship by a small amount."
     170      spawnerTemplate = "smallshrinkpickupRepresentation"
     171      inventoryRepresentation = "SmallShrink"
     172    />
    41173
    42174    <StaticEntity position="0,0,0" collisionType="static">
     
    46178          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
    47179          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
     180          wallThickness="<?lua print(MAZE_WALL_THICKNESS)?>"
     181          obstacletemplate=obstacle
     182          pickuptemplate=destroyhoverpickup
     183          pickuprepresentationtemplate=destroyhoverpickupRepresentation
     184          pickuptemplatespeed=hugespeedpickup
     185          pickuprepresentationtemplatespeed=hugespeedpickupRepresentation
     186          pickuptemplateshrink=smallshrinkpickup
     187          pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation
     188          groundtemplate=ground
    48189        />
    49         <Model
    50           position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
    51           scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
    52           mesh="CubeGround.mesh"
    53         />
     190
    54191      </attached>
    55       <collisionShapes>
    56         <BoxCollisionShape
    57           position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
    58           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    59         />
    60         <BoxCollisionShape
    61           position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
    62           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    63         />
    64       </collisionShapes>
     192     
    65193    </StaticEntity>
    66194
     
    75203    <SpawnPoint
    76204      team=0
    77       position="50,20,50"
    78       lookat="100,20,100"
     205      position="300,120,300"
     206      lookat="600,120,600"
    79207      spawnclass=HoverShip
    80208      pawndesign=spaceshiphover
     
    83211  </Scene>
    84212</Level>
    85 
Note: See TracChangeset for help on using the changeset viewer.