User Tools

Site Tools


en:rpd:zap_effects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:rpd:zap_effects [2026/01/02 06:41] – Update references to renamed wiki pages (enemies.txt -> enemies_overview.txt, spells.txt -> spells_overview.txt) mikeen:rpd:zap_effects [2026/01/04 02:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Zap Effects ======
  
 +**Zap Effects** are visual effects used in Remixed Pixel Dungeon when ranged attacks or spells are cast between two points.
 +
 +==== Description ====
 +Zap Effects are visual lines or beams that connect a caster or attacker to their target, providing visual feedback when ranged abilities are used. Different types of zap effects are used for different types of attacks and spells.
 +
 +==== Types of Zap Effects ====
 +  * **Arrow** - Used for [[en:rpd:ranged_combat|ranged weapon]] attacks
 +  * **Wand** - Generic effect for most [[en:rpd:wands|wand]] types
 +  * **Lightning** - Used for lightning-based [[en:rpd:wands|wands]] and [[en:rpd:spells_overview|spells]]
 +  * **Kunai** - Used specifically for the [[en:rpd:kunai_throw_spell|Kunai Throw]] spell
 +  * **Shuriken** - Used for [[en:rpd:shuriken_item|shuriken]] and other [[en:rpd:throwing_weapons|throwing weapons]]
 +  * **Magic Missile** - Used for [[en:rpd:magic_arrow_spell|magic missile effects]]
 +  * **Fire** - Used for fire-based [[en:rpd:weapons_mechanic|weapons]] and [[en:rpd:spells_overview|spells]]
 +  * **Frost** - Used for frost-based [[en:rpd:weapons_mechanic|weapons]] and [[en:rpd:spells_overview|spells]]
 +  * **Teleportation** - Used for [[en:rpd:blink_spell|blink]] and [[en:rpd:spells_overview|teleportation spells]]
 +
 +==== Implementation ====
 +  * Base implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/effects/ZapEffect.java|ZapEffect.java]]
 +  * Magic missile effects: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/effects/MagicMissile.java|MagicMissile.java]]
 +  * Usage in spells: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/KunaiThrow.lua#L32|RPD.zapEffect()]]
 +  * RPD API: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/Utils/RpdScriptUtils.java|RpdScriptUtils.java]]
 +  * Sprite implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/sprites/MobSpriteDef.java#L262-L268|MobSpriteDef.zap()]]
 +
 +==== Related Mechanics ====
 +  * [[en:rpd:spells_overview|Spells]] - Abilities that use zap effects
 +  * [[en:rpd:wands|Wands]] - Items that use zap effects
 +  * [[en:rpd:ranged_combat|Ranged Combat]] - General ranged attack mechanics
 +  * [[en:rpd:effects|Visual Effects]] - Other visual effects in the game
 +  * [[en:rpd:magic_mechanic|Magic System]] - Magic system using zap effects
 +  * [[en:rpd:combat_mechanic|Combat]] - General combat mechanics
 +
 +{{tag> rpd mechanics effects visuals }}