equal
deleted
inserted
replaced
93 === Other === |
93 === Other === |
94 || *Gear type* || *Description* || |
94 || *Gear type* || *Description* || |
95 || [GearTypes#gtAddAmmo `gtAddAmmo`] || Adds a weapon or utilty to a hedgehog || |
95 || [GearTypes#gtAddAmmo `gtAddAmmo`] || Adds a weapon or utilty to a hedgehog || |
96 || [GearTypes#gtATStartGame `gtATStartGame`] || Created at the start of the game || |
96 || [GearTypes#gtATStartGame `gtATStartGame`] || Created at the start of the game || |
97 || [GearTypes#gtATFinishGame `gtATFinishGame`] || Created at the end of the game. Fades out the screen and exits the game || |
97 || [GearTypes#gtATFinishGame `gtATFinishGame`] || Created at the end of the game. Fades out the screen and exits the game || |
98 || [GearTypes#gtGenericFaller `gtGenericFaller`] || TODO || |
98 || [GearTypes#gtGenericFaller `gtGenericFaller`] || Virtual ball || |
99 || [GearTypes#gtWaterUp `gtWaterUp`] || Causes water to rise || |
99 || [GearTypes#gtWaterUp `gtWaterUp`] || Causes water to rise || |
100 |
100 |
101 == Long descriptions and values == |
101 == Long descriptions and values == |
102 This section gives longer description of the various gear types and how their values (i.e. tag, pos, timer, health, etc.) are interpreted. The gear values are pretty chaotic, so they are described for each gear seperately. Use the various setter and getter functions for gears to modifiy the gear values. |
102 This section gives longer description of the various gear types and how their values (i.e. tag, pos, timer, health, etc.) are interpreted. The gear values are pretty chaotic, so they are described for each gear seperately. Use the various setter and getter functions for gears to modifiy the gear values. |
103 |
103 |
583 This gear is created at the end of the game. The gear itself will fade out the screen and cause the game to be closed. Note: If you want to end the game early, we recommend to call the `EndGame` function instad of using this gear. |
583 This gear is created at the end of the game. The gear itself will fade out the screen and cause the game to be closed. Note: If you want to end the game early, we recommend to call the `EndGame` function instad of using this gear. |
584 |
584 |
585 * `Timer`: Fade-out countdown in milliseconds. Fade-out begins at 1000 and finishes at 0. |
585 * `Timer`: Fade-out countdown in milliseconds. Fade-out begins at 1000 and finishes at 0. |
586 |
586 |
587 ==== `gtGenericFaller` ==== |
587 ==== `gtGenericFaller` ==== |
588 TODO. The purpose of this gear is not clear yet. |
588 This gear behaves like a virtual ball. It collides with its surroundings and bounces around but doesn't affect the environment or other gears in any way. It appears as a red circle, unless it is made invisible by setting the gear state. It also supports the gear state `gstNoGravity`. It gets automatically destroyed when its `Timer` is up. |
|
589 |
|
590 The density, elasticity, friction and radius can be changed. |
|
591 |
|
592 * `Radius`: Radiuis of the “ball” |
|
593 * `Timer`: Lifetimer. Needs to be set explicitly to a positive value, otherwise the gear just dies instantly |
|
594 |
|
595 This gear could be useful for some testing or as a dummy. |
589 |
596 |
590 ==== `gtWaterUp` ==== |
597 ==== `gtWaterUp` ==== |
591 Causes the water to rise. |
598 Causes the water to rise. |
592 |
599 |
593 `Tag` contains the number of pixels the water still has to rise (default: 47). The gear will be removed when its `Tag` reaches the value 0. |
600 `Tag` contains the number of pixels the water still has to rise (default: 47). The gear will be removed when its `Tag` reaches the value 0. |