Terrains: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
(Document all Terrain types on one page since they're not special enough for their own pages.)
 
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Terrain|Terrains]] are a category of [[built-in]] [[thing|things]] that generally perform no autonomous actions, interactions, or animations on the board. They can be placed in the [[editor]] by pressing F3 and selecting a thing.
#REDIRECT [[Category:Terrains]]
 
== Space ==
[[Terrain#Space|Space]] (ID 0, <code>Space</code>) is the default floor type and uses char 32 by default.
 
When provided as the replacement type for the [[CHANGE]] command, they are special in that changing something to a Space will instead remove the object being replaced, preserving whatever floor is beneath that object.
 
If the board option [[Explosions to...]] is set to ''Explosions to space'', [[Explosion|Explosions]] will leave the floor beneath where they were created unmodified.
 
If the board option [[Fire burns space]] is enabled, [[Fire]] can spread onto any Space.
 
===ZZT connection===
Space is analogous to [[ZZT]]'s Space.
 
== Normal ==
[[Terrain#Normal|Normal]] (ID 1, <code>Normal</code>) is a generic wall type that uses char 178 by default.
 
===ZZT connection===
Normal is analogous to [[ZZT]]'s Normal.
 
== Solid ==
[[Terrain#Solid|Solid]] (ID 2, <code>Solid</code>) is a generic wall type that uses char 219 by default.
 
===ZZT connection===
Solid is analogous to [[ZZT]]'s Solid.
 
== Tree ==
[[Terrain#Tree|Tree]] (ID 3, <code>Tree</code>) is a generic wall type that uses char 6 and color 10 by default.
 
If the board option [[Fire burns trees]] is enabled, [[Fire]] can spread onto Trees.
 
== Line ==
[[Terrain#Line|Line]] (ID 4, <code>Line</code>) is a generic wall type. A Line uses the configured [[thick lines]] ID chars (144-159) to determine its display character.
 
=== ZZT connection===
Line is analogous to [[ZZT]]'s Linewalls.
 
== Custom Block ==
{{main|[[Custom Block]]}}
 
[[Custom Block]] (ID 5, <code>CustomBlock</code>) is a generic wall type. Its [[parameter]] is used to select its display character.
 
== Breakaway ==
[[Terrain#Breakaway|Breakaway]] (ID 6, <code>Breakaway</code>) is a generic breakable wall type. It is like a regular wall except that it will be destroyed when shot, revealing whatever floor was beneath it.
 
=== ZZT connection ===
Breakaway is analogous to [[ZZT]]'s Breakable.
 
== Custom Break ==
{{main|[[Custom Break]]}}
 
[[Custom Break]] (ID 7, <code>CustomBreak</code>) is a generic breakable wall type. It is the same as [[Breakaway]], except its [[parameter]] is used to select its display character.
 
== Fake ==
[[Terrain#Fake|Fake]] (ID 13, <code>Fake</code>) is a generic floor type that uses char 178 by default.
 
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Fake.
 
===ZZT connection===
Fake is analogous to [[ZZT]]'s Fake.
 
== Carpet ==
[[Terrain#Carpet|Carpet]] (ID 14, <code>Carpet</code>) is a generic floor type that uses char 177 by default.
 
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Carpet.
 
== Floor ==
[[Terrain#Floor|Floor]] (ID 15, <code>Floor</code>) is a generic floor type that uses char 176 by default.
 
If the board option [[Explosions to...]] is set to ''Explosions to ash'', [[Explosion|Explosions]] will leave color 8 Floor beneath where they were created.
 
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Floor.
 
== Tiles ==
[[Terrain#Tiles|Tiles]] (ID 16, <code>Tiles</code>) is a generic floor type that uses char 254 by default.
 
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Tiles.
 
== Custom Floor ==
{{main|[[Custom Floor]]}}
[[Custom Floor]] (ID 17, <code>CustomFloor</code>) is a generic floor type that uses the value of its [[parameter]] to select its display character.
 
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Custom Floor.
 
== Web ==
[[Terrain#Web|Web]] (ID 18, <code>Web</code>) is a generic floor type with the default color 7. A Web uses the configured [[thin lines]] ID chars (128-143) to determine its display character.
 
== Thick Web ==
[[Terrain#Thick Web|Thick Web]] (ID 19, <code>ThickWeb</code>) is a generic floor type with the default color 7. A Thick Web uses the configured [[thick lines]] ID chars (144-159) to determine its display character.
 
== Forest ==
[[Terrain#Forest|Forest]] (ID 65, <code>Forest</code>) is a wall type with the default char 178 and color 2 by default. When touched by the [[Player]], the Player will move onto the Forest, which will turn into a [[Floor]] of the same color and play [[SFX]] 13.
 
===ZZT connection===
Forest is analogous to [[ZZT]]'s Forest.
 
== Invis. Wall ==
[[Terrain#Invis. Wall|Invis. Wall]], (ID 71, <code>InvisWall</code>) is a wall type with the default char 32, which makes it indistinguishable from [[Space]] of the same color ("invisible"). When touched by the [[Player]], the Invis. Wall will turn into a [[Normal]] of the same color, play [[SFX]] 12, and display the [[Message Line|message]] "Oof! You ran into an invisible wall".
 
===ZZT connection===
Invis. Wall is analogous to [[ZZT]]'s Invisible.


[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]]
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]]

Latest revision as of 00:20, 31 May 2025

Redirect to: