This is an old revision of the document!
~~DISCUSSION~~ <- Alpha List of Commands <-class link <-PRPL home <- Game 4 home
Arguments | Result | Notation |
---|---|---|
Pixel coordinates, direction, speed, type, enemy | Particle UID. | f1 f2 f3 f4 i1 i2 – |
Creates a particle with the given position and velocity. The angle is measured counterclockwise, and angle 0 is to the right. Currently the possible values for “type” are:
Type | Description |
---|---|
0 | The default round particle which is attracted to ships and energy sources. |
1 | A square particle which travels in a straight line and damages ships only. |
If the “enemy” argument is false, the particle will be blue and harmless. It will still be attracted to ships but will happily float under them.
Standard CRPL | x y direction speed type enemy createparticle |
Warp notation | createparticle (x y direction speed type enemy) |
Create an enemy particle moving up and capture its UID.
CreateParticle(CurrentPixelCoords 90 10 0 1) ->p
case STATEMENT.CREATEPARTICLE: i2 = GetIntFromStack(); //enemy i1 = GetIntFromStack(); //particle type f4 = GetFloatFromStack(); //Speed f3 = GetFloatFromStack(); //direction in degrees f2 = GetFloatFromStack(); //y f1 = GetFloatFromStack(); //x