Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 16 and Version 17 of content/LevelHowTo


Ignore:
Timestamp:
Feb 11, 2011, 10:09:59 AM (13 years ago)
Author:
jo
Comment:

Pickups

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v16 v17  
    33
    44== Create the basic file ==
    5  1. Go to the folder ../data/levels. The level files ending with .oxw are simple XML files and can be opened with any editor. Each level file stored in this folder can be selected later in Orxonox.
     5 1. Go to the folder __../data/levels__. The level files ending with .oxw are simple XML files and can be opened with any editor. Each level file stored in this folder can be selected later in Orxonox.
    66 2. Copy „empty_level.oxw“ and paste it again in the folder.
    77 3. Rename the copy. Try to use a name that sounds good. Avoid whitespace – use „_“ or CamelCase instead.
     
    101101<TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
    102102}}}
     103
     104== [http://www.orxonox.net/doxygen/classorxonox_1_1_pickup_spawner.html Pickups]  ==
     105Pickups give a player a tomporary bonus, if he is able to flight through the pickup. Bonuses are invisibility, health, boost,  shield, a drone, ...
     106 1. Include the pickups.
     107{{{
     108#!xml
     109<?lua
     110    include("includes/pickups.oxi")
     111 ?>
     112}}}
     113 2. Add a PickupSpawner. An invisible device that puts pickups in the level.
     114{{{
     115#!xml
     116<PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     117    <pickup>
     118        <InvisiblePickup template=mediuminvisiblepickup />
     119    </pickup>
     120</PickupSpawner>
     121}}}
     122 * triggerDistance: Distance to collect the pickup. The larger the triggerDistance, the easier it is to get the pickup.
     123 * respawnTime: After respawntime seconds a new pickup will appear, if the pickup had been collected.
     124 * maxSpawnedItems: After maxSpawnedItems no further pickup will appear.