Ricochet: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Could use pictures, perhaps. And maybe an explanation for non-standard bullets.)
 
(picture alignment)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|id={{Byte|32}}
|id={{Byte|32}}
|char={{CharSwatch|42}}
|char={{CharSwatch|42}}
|color={{ColorSwatch|fg=yellow|bg=black}}
|color={{ColorSwatch|fg=green|bg=black}}
|category=terrain
|category=terrain
|stats=no
|stats=no
Line 18: Line 18:


If a bullet hits a wall and there are ricochets directly perpendicular to its direction of travel on ''both'' sides, then the bullet simply disappears.
If a bullet hits a wall and there are ricochets directly perpendicular to its direction of travel on ''both'' sides, then the bullet simply disappears.
[[File:Ricochet-demo.gif|thumb|Ricochets can reflect bullets back where they came from and deflect them to the side.|alt=|left]]


{{ElementsNavbox}}
{{ElementsNavbox}}

Latest revision as of 19:44, 14 February 2021

Ricochet
ZZT-OOP namericochet
Internal ID32 (0x20)
Character#char 42 * (0x2A)
Default colorgreen on black (0x0A)
Categoryterrain
Stats?no
Other traits
Effect on movementsolid
Destructible?no
Uses ZZT-OOP color names?no

Ricochets are solid walls that can either reflect or deflect bullets.

If a bullet hits a ricochet head-on then the bullet is reflected back where it came from.

If a bullet hits a wall and there is a ricochet directly perpendicular to its direction of travel on one side, then the bullet is deflected at a right angle away from the ricochet.

If a bullet hits a wall and there are ricochets directly perpendicular to its direction of travel on both sides, then the bullet simply disappears.

Ricochets can reflect bullets back where they came from and deflect them to the side.