Talos docs

Shot

Since 0.6

One shot: its keys, how long it lasts, and how it begins.

Plain text

Signature

export interface Shot {
  /** For logs and for `ShotSample.name`. */
  name?: string
  /** One key is a still; more are a move. */
  keys: ShotKey[]
  /** Seconds. Absent, the last key's `at` (a still with no duration lasts one second). */
  duration?: number
  /** The default easing between this shot's keys. Default `inOut`. */
  ease?: ShotEase
  /**
   * How the shot begins: absent or 0 is a cut; a number is seconds of blend from where the previous shot
   * ended, eased in and out, during which this shot's own keys are already playing underneath.
   */
  blend?: number
}

Import: import type { Shot } from "@argus/gameplay"

Members

MemberSignatureDescription
namename?: stringFor logs and for ShotSample.name.
keyskeys: ShotKey[]One key is a still; more are a move.
durationduration?: numberSeconds. Absent, the last key's at (a still with no duration lasts one second).
easeease?: ShotEaseThe default easing between this shot's keys. Default inOut.
blendblend?: numberHow the shot begins: absent or 0 is a cut; a number is seconds of blend from where the previous shot ended, eased in and out, during which this shot's own keys are already playing underneath.