Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 55 and Version 56 of content/LevelHowTo


Ignore:
Timestamp:
Sep 7, 2015, 12:30:38 PM (5 years ago)
Author:
fvultier
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v55 v56  
    142142== [http://www.orxonox.net/doxygen/classorxonox_1_1_pickup_spawner.html Pickups]  ==
    143143Pickups give a player a temporary bonus when collecting it. Bonuses are invisibility, health, boost,  shield, a drone, ...
    144  1. Include the pickups.
     144 1. Include the pickupsRepresentationTemplates. This include should be somewhere between the LevelInfo and the opening Level tag.
    145145{{{
    146146#!xml
    147147<?lua
    148148    include("templates/pickupRepresentationTemplates.oxt")
     149 ?>
     150}}}
     151 2. Include the pickups. This include should be after the opening Scene tag.
     152{{{
     153#!xml
     154<?lua
    149155    include("includes/pickups.oxi")
    150156 ?>
    151157}}}
    152  2. Add a PickupSpawner. An invisible device that puts pickups in the level.
    153 {{{
    154 #!xml
    155 <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    156     <pickup>
    157         <InvisiblePickup template=mediuminvisiblepickup />
    158     </pickup>
    159 </PickupSpawner>
     158 3. Add a PickupSpawner. An invisible device that puts pickups in the level.
     159{{{
     160#!xml
     161<PickupSpawner pickup=smallshieldpickup position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
    160162}}}
    161163'''Pickupspawner - attributes''':