Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/doc/Pickups


Ignore:
Timestamp:
Mar 18, 2010, 4:11:29 PM (14 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Pickups

    v3 v4  
    99=== Including pickups in a level ===
    1010I wanted to make including pickups in level as simple as possible, while also ensuring a division between the pickup itself and how it looks. For you to be able to use pickups in your level you need to understand a few concepts.
    11 - Pickups (Pickupables) are entities which have no physical (or graphical) dimension. The simply represent the effect they will have on a carrier, when used.
    12 - The physical (or graphical) dimension of a pickup is called a PickupRepresentation (or in the following referred to as representation).
    13 - The representation of a pickup and the pickup itself are linked to each other, meaning a representation can only represent one type of pickup.
    14 - The entity that actually gives a pickup to a carrier is called a PickupSpawner (in the following called spawner). A spawner creates (based on some parameters) pickups which can be picked up and how the spawner looks in the game is defined by the representation of the pickup it spawns.
    15 - A type of pickup is a specific pickup class with values for all its relevant parameters. This means, that a pickup of the same class with the same values for all parameters except for one is a different type of pickup and will therefore have a different representation.
     11 * Pickups (Pickupables) are entities which have no physical (or graphical) dimension. The simply represent the effect they will have on a carrier, when used.
     12 * The physical (or graphical) dimension of a pickup is called a PickupRepresentation (or in the following referred to as representation).
     13 * The representation of a pickup and the pickup itself are linked to each other, meaning a representation can only represent one type of pickup.
     14 * The entity that actually gives a pickup to a carrier is called a PickupSpawner (in the following called spawner). A spawner creates (based on some parameters) pickups which can be picked up and how the spawner looks in the game is defined by the representation of the pickup it spawns.
     15 * A type of pickup is a specific pickup class with values for all its relevant parameters. This means, that a pickup of the same class with the same values for all parameters except for one is a different type of pickup and will therefore have a different representation.
    1616
    1717==== Using predefined pickups ====
     
    5858}}}
    5959
    60 ==== Using not-predefined pickups ====
     60==== Using non-predefined pickups ====
    6161
    6262Now let's assume you're not satisfied with the pickups that are provided by the two before mentioned file, but you're not much of a coder as well. Luckily there is a way for you. Pickups were created with a broad range of use in mind, which means that the pickups provided by the files are not all there is.
     
    140140=== Creating a new pickup ===
    141141
     142Now it get's a little trickier. Therefore I'm just going to supply you with a recipe, or a set of steps you have to take, without which your pickup won't work.
     143