Difference between revisions of "Element:CRAY"

From The Powder Toy
Jump to: navigation, search
(Description of CRAY's properties and usages.)
 
m (Some minor changes)
 
(23 intermediate revisions by 12 users not shown)
Line 1: Line 1:
CRAY is probably one of ''the most useful'' elements ever added to The Powder Toy. Basically, what it does is make a beam of whatever length you want out of whatever particle you want, at any temperature you want. With that, one can make tiny logic gates, machines, factories and animations.
+
{{ infobox Element
 +
| icon = CRAY.png
 +
| longname = Create-Ray
 +
| image =
 +
 
 +
| identifier = DEFAULT_PT_CRAY
 +
| name = CRAY
 +
| description = Particle Ray Emitter. Creates a beam of particles set by its ctype, with a range set by tmp.
 +
| colour = BBFF00
 +
| menusection = SC_ELEC
 +
| menuvisible = 1
 +
| advection = 0
 +
| airdrag = 0
 +
| airloss = 0.9
 +
| loss = 0
 +
| collision = 0
 +
| diffusion = 0
 +
| explosive = 0
 +
| falldown = 0
 +
| flammable = 0
 +
| gravity = 0
 +
| hardness = 1
 +
| heatconduct = 0
 +
| hotair = 0
 +
| meltable = 0
 +
| state = ST_SOLID
 +
| temperature = 295.15
 +
| weight = 100
 +
| properties = TYPE_SOLID PROP_LIFE_DEC
 +
| lowtemperature =
 +
| lowtemperaturetransition =
 +
| hightemperature =
 +
| hightemperaturetransition =
 +
| lowpressure =
 +
| lowpressuretransition =
 +
| highpressure =
 +
| highpressuretransition =
 +
}}
 +
 
 +
CRAY is one of ''the most useful'' elements ever added to The Powder Toy. In short, what it does is make a beam out of a chosen particle, at an adjustable length and temp. With that, one can make tiny logic gates, machines, factories and animations.
  
 
== Basic Properties ==
 
== Basic Properties ==
 
CRAY is a purely electronic element, which means that it:
 
CRAY is a purely electronic element, which means that it:
1. Is a solid.
+
# Is a solid.
2. Does not change state: you can't make gaseous or liquid CRAY by heating it up.
+
# Does not change state: you can't make gaseous or liquid CRAY by heating it up.
3. Does not conduct heat: the only way to change the temperature of a CRAY particle is to heat it or cool it using the mouse or console, or to use PROT(link and tutorial needed).
+
# Does not conduct heat: the only way to change the temperature of a CRAY particle is to use HEAT, COOL, PROP, or the console, or to use PROT (link and tutorial needed).
4. Is invulnerable to everything except SING, AMTR, DEST and BOMB.
+
# Is invulnerable to everything except SING, AMTR, DEST, BOMB, WARP, VIRS, CONV, ACID, CAUS, and being replaced.
5. Does not conduct electricity.
+
# Does not conduct electricity.
 +
 
  
 
Note that all of the sensors (except INVS) and ARAY have the exact same physical properties. But CRAY's electronic properties are what make it really interesting.
 
Note that all of the sensors (except INVS) and ARAY have the exact same physical properties. But CRAY's electronic properties are what make it really interesting.
Line 13: Line 53:
 
== Electronic Properties ==
 
== Electronic Properties ==
  
When CRAY is SPRK-ed from any side (including diagonals) that is '''directly adjacent to''' (touching) the particle, it will fire its beam of particles in the opposite direction. However, its properties after that are determined by a combination of what conductor is sparking it, its tmp, its ctype, and even its tmp2.
+
When CRAY is SPRKed from any side (including diagonals) that is '''directly adjacent to''' (touching) the particle, it will fire its beam of particles in the opposite direction. However, its properties after that are determined by a combination of what conductor is sparking it, its temp, tmp, tmp2, ctype, and life.
 +
 
 +
'''ctype''' sets the type of particle that CRAY spawns in. A ctype of 0 (not set) means that it will set its ctype to the type of the first particle that touches it, including conductors.
 +
 
 +
'''temp''' sets the temperature of the particles that are spawned.
 +
 
 +
'''life''' sets the life of the particles that are spawned.
  
'''ctype''' sets the type of particle that CRAY spawns in. A ctype of 0 (not set) means that it will get its ctype from the first particle that touches it, including conductors.
 
 
'''tmp''' sets the 'range' of the beam, that is, a tmp value of ''one'' will spawn ''one''pixel if the CRAY is free to do so (see beneath)
 
'''tmp''' sets the 'range' of the beam, that is, a tmp value of ''one'' will spawn ''one''pixel if the CRAY is free to do so (see beneath)
'''tmp2''' is used to supplement the ctype when spawning LIFE type particles: since they are ll one element with a different ctype, the game uses tmp2 to determine which type to make.
+
 
 +
'''tmp2''' sets how much space to leave before particles are spawned.
 +
 
  
 
By default, CRAY spawns at 22.00°C with ctype, tmp and tmp2 set to 0. That means that it will fire a line 256 pixels long made out of whatever element it touches first.
 
By default, CRAY spawns at 22.00°C with ctype, tmp and tmp2 set to 0. That means that it will fire a line 256 pixels long made out of whatever element it touches first.
 +
 +
If there is a pixel of FILT in front of CRAY, the FILT's color sets the deco color of the resulting particles.
  
 
When different elements SPRK the CRAY, it changes how it behaves:
 
When different elements SPRK the CRAY, it changes how it behaves:
 +
 
'''PSCN'''
 
'''PSCN'''
 
"Delete Mode"
 
"Delete Mode"
 
Beam is always the same length as tmp.
 
Beam is always the same length as tmp.
 
Will place particles in all empty space within this region.
 
Will place particles in all empty space within this region.
If there is a particle in the way of it, it will be deleted.
+
If there are particles in the way of it, they will be deleted, even if they are the type that are being created.
'''''special case:''''' when CRAY with ctype SPRK is sparked by PSCN, the exact number of particles as the tmp will be deleted in the path of the beam. This means that is can delete from a great distance away, without spawning any new particles. note that is will NOT create electricity in conductors, use ARAY with INST/INWR for that.
 
  
 
'''INST/INWR'''
 
'''INST/INWR'''
 
"Go through Everything Mode"
 
"Go through Everything Mode"
The beam will ignore any particles in its path, spawning exactly as many particles as its tmp says. Will not delete anything.
+
The beam will ignore any particles in its path, spawning exactly as many particles as its tmp says. Will not delete anything. INST goes through walls, but INWR does not.
  
 
'''All other conductors'''
 
'''All other conductors'''
 
"Normal Mode"
 
"Normal Mode"
 
The beam will stop as soon as it hits an obstacle. tmp sets the maximum number of particles it spawns.
 
The beam will stop as soon as it hits an obstacle. tmp sets the maximum number of particles it spawns.
 +
 +
'''''Special Case:''''' When CRAY with ctype SPRK is sparked by PSCN, the exact number of particles as the tmp will be deleted in the path of the beam (unless said particle is CRAY, in which case it will be unaffected). This means that is can delete from a great distance away, without spawning any new particles. Additionally, CRAY(SPRK) ''can'' transmit electricity if and only if it is triggered by INWR - this will create tmp number sparks in any conductors that the beam passes through. This fact is extremely useful for creating complicated electronics.
 +
 +
'''''Helpful Tip:''''' CRAY with a ctype of 125 + v * 512 creates a FILT particle with a tmp of v.
 +
 +
== Example Saves ==
 +
{|border="1" cellpadding="5" cellspacing="0"
 +
|-
 +
| Usage examples
 +
| {{ save | id=2172783 }}
 +
|}
 +
 +
{{Languages}}

Latest revision as of 17:00, 21 November 2023

CRAY.png Create-Ray
Properties
Section Electronics
Spawn temperature 22°C
Heat Conductivity 0%
Relative weight 100
Gravity 0
Acid dissolve rate 0.1%
Flammability 0
State Solid
Misc properties
Source code


CRAY is one of the most useful elements ever added to The Powder Toy. In short, what it does is make a beam out of a chosen particle, at an adjustable length and temp. With that, one can make tiny logic gates, machines, factories and animations.

Basic Properties

CRAY is a purely electronic element, which means that it:

  1. Is a solid.
  2. Does not change state: you can't make gaseous or liquid CRAY by heating it up.
  3. Does not conduct heat: the only way to change the temperature of a CRAY particle is to use HEAT, COOL, PROP, or the console, or to use PROT (link and tutorial needed).
  4. Is invulnerable to everything except SING, AMTR, DEST, BOMB, WARP, VIRS, CONV, ACID, CAUS, and being replaced.
  5. Does not conduct electricity.


Note that all of the sensors (except INVS) and ARAY have the exact same physical properties. But CRAY's electronic properties are what make it really interesting.

Electronic Properties

When CRAY is SPRKed from any side (including diagonals) that is directly adjacent to (touching) the particle, it will fire its beam of particles in the opposite direction. However, its properties after that are determined by a combination of what conductor is sparking it, its temp, tmp, tmp2, ctype, and life.

ctype sets the type of particle that CRAY spawns in. A ctype of 0 (not set) means that it will set its ctype to the type of the first particle that touches it, including conductors.

temp sets the temperature of the particles that are spawned.

life sets the life of the particles that are spawned.

tmp sets the 'range' of the beam, that is, a tmp value of one will spawn onepixel if the CRAY is free to do so (see beneath)

tmp2 sets how much space to leave before particles are spawned.


By default, CRAY spawns at 22.00°C with ctype, tmp and tmp2 set to 0. That means that it will fire a line 256 pixels long made out of whatever element it touches first.

If there is a pixel of FILT in front of CRAY, the FILT's color sets the deco color of the resulting particles.

When different elements SPRK the CRAY, it changes how it behaves:

PSCN "Delete Mode" Beam is always the same length as tmp. Will place particles in all empty space within this region. If there are particles in the way of it, they will be deleted, even if they are the type that are being created.

INST/INWR "Go through Everything Mode" The beam will ignore any particles in its path, spawning exactly as many particles as its tmp says. Will not delete anything. INST goes through walls, but INWR does not.

All other conductors "Normal Mode" The beam will stop as soon as it hits an obstacle. tmp sets the maximum number of particles it spawns.

Special Case: When CRAY with ctype SPRK is sparked by PSCN, the exact number of particles as the tmp will be deleted in the path of the beam (unless said particle is CRAY, in which case it will be unaffected). This means that is can delete from a great distance away, without spawning any new particles. Additionally, CRAY(SPRK) can transmit electricity if and only if it is triggered by INWR - this will create tmp number sparks in any conductors that the beam passes through. This fact is extremely useful for creating complicated electronics.

Helpful Tip: CRAY with a ctype of 125 + v * 512 creates a FILT particle with a tmp of v.

Example Saves

Usage examples
Language: [[::Element:CRAY|English]]