The cast always worked (click a square), but nothing guided it and nothing marked its arrival. Now: a targeting prompt, eligibility dimming to the caster's sighted squares (the engine demands LOS to the aim point), and a flourish — the aiming mark, a shadow gathering, the die crashing down out of a clear sky with a bounce and flung grit, a drift line when fate moves it, and every scattered token streaking to where it lands. In the /?fx gallery as die-drop. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0138A8CjeQRpvzKxuMfz1Bqc
64 lines
1.9 KiB
TypeScript
64 lines
1.9 KiB
TypeScript
// One sprite component per effect. To change an effect's look, edit its
|
|
// file; to add one, create the component, extend BoardFx in ../fx.ts, and
|
|
// register it here.
|
|
import type { Component } from "svelte";
|
|
import type { BoardFx, FxOf } from "../fx";
|
|
import Absorb from "./Absorb.svelte";
|
|
import Bolt from "./Bolt.svelte";
|
|
import Burst from "./Burst.svelte";
|
|
import ChaosSwirl from "./ChaosSwirl.svelte";
|
|
import Claw from "./Claw.svelte";
|
|
import DieDrop from "./DieDrop.svelte";
|
|
import DustPuff from "./DustPuff.svelte";
|
|
import Fireball from "./Fireball.svelte";
|
|
import Fireworks from "./Fireworks.svelte";
|
|
import Hit from "./Hit.svelte";
|
|
import OozeSlip from "./OozeSlip.svelte";
|
|
import PitFall from "./PitFall.svelte";
|
|
import Portal from "./Portal.svelte";
|
|
import Pow from "./Pow.svelte";
|
|
import SectorGrind from "./SectorGrind.svelte";
|
|
import Shield from "./Shield.svelte";
|
|
import Shimmer from "./Shimmer.svelte";
|
|
import SlimeStuck from "./SlimeStuck.svelte";
|
|
import Soul from "./Soul.svelte";
|
|
import Sparkle from "./Sparkle.svelte";
|
|
import Splash from "./Splash.svelte";
|
|
import Streak from "./Streak.svelte";
|
|
import TacksOw from "./TacksOw.svelte";
|
|
import ThornSnap from "./ThornSnap.svelte";
|
|
import Waterbolt from "./Waterbolt.svelte";
|
|
import Whiff from "./Whiff.svelte";
|
|
|
|
export const FX_SPRITES: { [K in BoardFx["kind"]]: Component<{ fx: FxOf<K> }> } = {
|
|
fireball: Fireball,
|
|
waterbolt: Waterbolt,
|
|
bolt: Bolt,
|
|
burst: Burst,
|
|
splash: Splash,
|
|
shimmer: Shimmer,
|
|
shield: Shield,
|
|
sparkle: Sparkle,
|
|
whiff: Whiff,
|
|
hit: Hit,
|
|
pow: Pow,
|
|
claw: Claw,
|
|
absorb: Absorb,
|
|
portal: Portal,
|
|
"portal-cell": Portal,
|
|
streak: Streak,
|
|
soul: Soul,
|
|
fireworks: Fireworks,
|
|
"chaos-swirl": ChaosSwirl,
|
|
"die-drop": DieDrop,
|
|
"pit-fall": PitFall,
|
|
"ooze-slip": OozeSlip,
|
|
"tacks-ow": TacksOw,
|
|
"thorn-snap": ThornSnap,
|
|
"slime-stuck": SlimeStuck,
|
|
"dust-puff": DustPuff,
|
|
"edge-dust": DustPuff,
|
|
"sector-spin": SectorGrind,
|
|
"sector-slide": SectorGrind,
|
|
};
|