Difference between revisions of "024F"
m (→Types of Coronas) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Icon|trilogy}} '''DRAW_CORONA''' |
− | + | <hr /> | |
− | + | '''Description''' | |
− | + | : Draws a corona | |
− | + | '''Syntax''' | |
− | + | : 024F: create_corona_with_radius [''flt1''] type [''int1''] lensflares [''int2''] with_color [''int3''] [''int4''] [''int5''] at [''flt2''] [''flt3''] [''flt4''] | |
− | + | '''Parameter''' | |
− | + | : [''flt1''] | |
− | + | :: Radius, slightly larger than the standard game units | |
− | + | : [''int1''] | |
− | + | :: [[#Types of Coronas|Type]] | |
− | + | : [''int2''] | |
− | + | :: [[#Types of Lens Flare|Lensflare]] | |
− | + | : [''int3''] | |
− | + | :: [[wikipedia:RGB color model|Red]] | |
− | [[ | + | : [''int4''] |
+ | :: Green | ||
+ | : [''int5''] | ||
+ | :: Blue | ||
+ | : [''flt2''] | ||
+ | :: X-coordinate | ||
+ | : [''flt3''] | ||
+ | :: Y-coordinate | ||
+ | : [''flt4''] | ||
+ | :: Z-coordinate | ||
+ | '''Native analog''' | ||
+ | : [[DRAW_CORONA]] | ||
− | + | This opcode draws a corona at a point. It is nearly identical to opcode [[04D5]] and behaves like [[2DFX#Type 0: Lights|2DFX type 0 lights]]: it is transparent, the corona texture will point towards the player, and "dark" colors means decreased light intensity of the corona. All the corona textures are from the <code>[[particle.txd]]</code> file. This opcode must be placed in a [[Create a thread#Loops|loop]] in order for the corona to appear. Once the corona is placed in a loop, it begins to appear by fading in. When not placed in a loop anymore, it fades out and disappears. Coronas are mainly used as checkpoints in races in the games. | |
− | |||
− | <code> | ||
− | |||
==Types of Coronas== | ==Types of Coronas== | ||
Line 70: | Line 78: | ||
| [[File:VCorona5.png|150px|Type 5]] | | [[File:VCorona5.png|150px|Type 5]] | ||
| | | | ||
− | | | + | | coronahex |
| Hexagonal light | | Hexagonal light | ||
|- | |- | ||
Line 110: | Line 118: | ||
| white | | white | ||
|} | |} | ||
+ | |||
+ | == Keywords == | ||
+ | create, draw, corona, color, rgb | ||
+ | |||
+ | [[Category:OpCodes]] |
Latest revision as of 20:56, 18 July 2015
Description
- Draws a corona
Syntax
- 024F: create_corona_with_radius [flt1] type [int1] lensflares [int2] with_color [int3] [int4] [int5] at [flt2] [flt3] [flt4]
Parameter
- [flt1]
- Radius, slightly larger than the standard game units
- [int1]
- [int2]
- [int3]
- [int4]
- Green
- [int5]
- Blue
- [flt2]
- X-coordinate
- [flt3]
- Y-coordinate
- [flt4]
- Z-coordinate
Native analog
This opcode draws a corona at a point. It is nearly identical to opcode 04D5 and behaves like 2DFX type 0 lights: it is transparent, the corona texture will point towards the player, and "dark" colors means decreased light intensity of the corona. All the corona textures are from the particle.txd
file. This opcode must be placed in a loop in order for the corona to appear. Once the corona is placed in a loop, it begins to appear by fading in. When not placed in a loop anymore, it fades out and disappears. Coronas are mainly used as checkpoints in races in the games.
Types of Coronas
Values not listed in the table will crash the game. The following images all have a size of 1.0 with the color white.
Types of Lens Flare
Lens flare is the light scattering effect on the lens of a camera. The most noticeably obvious use of lens flare in the games is when the player looks toward the sun but not directly at the sun.
Lensflare | Description |
---|---|
0 | none |
1 | yellow |
2 | white |
Keywords
create, draw, corona, color, rgb