Slash2D.component
README.md
Slash2D
A Hollow Knight style sword slash for a twoDKit platformer player. Put it on the player's body next to twoDKit.Player2D (and twoDKit.Sprite2D): players.body.component.add("Slash2D", {}) after PP.player(). Pressing the controlsKit attack action swings forward, up (up held) or down (down held in the air) with a 0.33 s cooldown; hits on slash2D.api targets and SecondWind Vitals give hit-stop, a spark, a clank, recoil, and a pogo bounce with dash refill on a down hit. It switches Player2D's scheme to platformerSlash so the attack button exists. The owner peer reads input and tests hits; the synced swing and hitFx fields let every peer draw every swing and spark. Fields and API: the package README.