Skip to content

1681-engine / index / AimShape

Type Alias: AimShape ​

ts
type AimShape = 
  | {
  kind: "point";
  range: number;
}
  | {
  backwards?: boolean;
  kind: "direction";
  length: number;
  snap?: number;
};

Defined in: src/input/AimGesture.ts:118

How a skill is aimed: at a spot within range (a blast, a blink), or along a direction for length (a shot, a dash; backwards for a leap away from the aim).

Released under the MIT License.