# at.skeetfighter.score

> A scoring attempt: a run's score up to a game over, a clear, a quit, or the moment a continue reset the score.

- Kind: record
- Record key: tid
- Authority: skeetfighter.at
- Lexicon: 1
- Published by [skeetfighter.at](https://lexicon.garden/identity/did:plc:xa2u22z7m4qgaaxxy3kjyqs4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:xa2u22z7m4qgaaxxy3kjyqs4/at.skeetfighter.score)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:xa2u22z7m4qgaaxxy3kjyqs4/at.skeetfighter.score/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:xa2u22z7m4qgaaxxy3kjyqs4/at.skeetfighter.score/analytics)

## Record (`at.skeetfighter.score`)

Type: record · key tid

### Properties

- `continuesUsed` (integer): Continues used so far in the run.
  - Constraints: minimum: 0
- `createdAt` (string · datetime, required): When the attempt ended.
- `durationSeconds` (integer): Fight time in this attempt.
  - Constraints: minimum: 0
- `fighter` (string · did, required): The account whose fighter the player used.
- `gameVersion` (string, required): Game version and short commit, e.g. 1.0.0+e5d5c42. A replay checker runs the game code at that commit.
  - Constraints: maxLength: 32
- `matches` (array, required): Every match fought in this attempt, in order.
  - Constraints: maxLength: 16
  - `items` (ref)
    - Reference: `#match`
- `outcome` (string, required): How the attempt ended: beat the final boss, game over, banked just before a continue reset the score, or quit from the pause menu.
  - Constraints: knownValues: cleared | gameOver | continued | quit
- `perfects` (integer): Rounds won without taking damage.
  - Constraints: minimum: 0
- `replay` (blob, required): Player 1's button presses for every match, in the SF2R format (see lexicons/README.md).
  - Constraints: maxSize: 1000000, accept: application/octet-stream
- `runId` (string, required): A TID shared by every attempt in one arcade run.
  - Constraints: maxLength: 32
- `score` (integer, required): Points scored in this attempt.
  - Constraints: minimum: 0, maximum: 99999999
- `segment` (integer): Which attempt within the run (0 = first).
  - Constraints: minimum: 0
- `supersLanded` (integer): Supers that hit.
  - Constraints: minimum: 0

## #cpu (`at.skeetfighter.score#cpu`)

Type: object

### Properties

- `archetype` (string, required)
  - Constraints: maxLength: 32, knownValues: rushdown | zoner | turtle | wildcard
- `behaviour` (string, required)
  - Constraints: maxLength: 32, knownValues: normal | still | block
- `level` (integer, required)
  - Constraints: minimum: 0, maximum: 10

## #match (`at.skeetfighter.score#match`)

Type: object

One match in an attempt, with what is needed to replay it exactly.

### Properties

- `frames` (integer, required): Simulation steps the match took.
  - Constraints: minimum: 0
- `opponent` (string · did, required): The account whose fighter was the opponent.
- `role` (string, required): The opponent's place on the arcade ladder.
  - Constraints: knownValues: regular | boss | finalBoss
- `score` (integer, required): Points from this match.
  - Constraints: minimum: 0
- `seed` (integer, required): The match's random seed (32-bit).
  - Constraints: minimum: 0
- `setup` (ref, required)
  - Reference: `#matchSetup`
- `stage` (string): The stage's name.
  - Constraints: maxLength: 64
- `won` (boolean, required): Whether the player won the match.

## #matchSetup (`at.skeetfighter.score#matchSetup`)

Type: object

Everything besides player 1's presses that the fight simulation and the CPU read.

### Properties

- `cpu` (ref): The CPU opponent; absent means player 2 was human.
  - Reference: `#cpu`
- `introFrames` (integer, required): Frames before inputs count each round.
  - Constraints: minimum: 0
- `outroFrames` (integer, required): Frames after a K.O. or time over.
  - Constraints: minimum: 0
- `roundTime` (integer): Seconds per round; absent means no time limit.
  - Constraints: minimum: 1
- `scales` (array, required): Each fighter's size in percent.
  - Constraints: minLength: 2, maxLength: 2
  - `items` (integer)
    - Constraints: minimum: 1
- `stageW` (integer, required): The stage's width in pixels.
  - Constraints: minimum: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "cpu": {
      "properties": {
        "archetype": {
          "knownValues": [
            "rushdown",
            "zoner",
            "turtle",
            "wildcard"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "behaviour": {
          "knownValues": [
            "normal",
            "still",
            "block"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "level": {
          "maximum": 10,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "behaviour",
        "archetype",
        "level"
      ],
      "type": "object"
    },
    "main": {
      "description": "A scoring attempt: a run's score up to a game over, a clear, a quit, or the moment a continue reset the score.",
      "key": "tid",
      "record": {
        "properties": {
          "continuesUsed": {
            "description": "Continues used so far in the run.",
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "description": "When the attempt ended.",
            "format": "datetime",
            "type": "string"
          },
          "durationSeconds": {
            "description": "Fight time in this attempt.",
            "minimum": 0,
            "type": "integer"
          },
          "fighter": {
            "description": "The account whose fighter the player used.",
            "format": "did",
            "type": "string"
          },
          "gameVersion": {
            "description": "Game version and short commit, e.g. 1.0.0+e5d5c42. A replay checker runs the game code at that commit.",
            "maxLength": 32,
            "type": "string"
          },
          "matches": {
            "description": "Every match fought in this attempt, in order.",
            "items": {
              "ref": "#match",
              "type": "ref"
            },
            "maxLength": 16,
            "type": "array"
          },
          "outcome": {
            "description": "How the attempt ended: beat the final boss, game over, banked just before a continue reset the score, or quit from the pause menu.",
            "knownValues": [
              "cleared",
              "gameOver",
              "continued",
              "quit"
            ],
            "type": "string"
          },
          "perfects": {
            "description": "Rounds won without taking damage.",
            "minimum": 0,
            "type": "integer"
          },
          "replay": {
            "accept": [
              "application/octet-stream"
            ],
            "description": "Player 1's button presses for every match, in the SF2R format (see lexicons/README.md).",
            "maxSize": 1000000,
            "type": "blob"
          },
          "runId": {
            "description": "A TID shared by every attempt in one arcade run.",
            "maxLength": 32,
            "type": "string"
          },
          "score": {
            "description": "Points scored in this attempt.",
            "maximum": 99999999,
            "minimum": 0,
            "type": "integer"
          },
          "segment": {
            "description": "Which attempt within the run (0 = first).",
            "minimum": 0,
            "type": "integer"
          },
          "supersLanded": {
            "description": "Supers that hit.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "score",
          "outcome",
          "runId",
          "fighter",
          "matches",
          "gameVersion",
          "replay",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "match": {
      "description": "One match in an attempt, with what is needed to replay it exactly.",
      "properties": {
        "frames": {
          "description": "Simulation steps the match took.",
          "minimum": 0,
          "type": "integer"
        },
        "opponent": {
          "description": "The account whose fighter was the opponent.",
          "format": "did",
          "type": "string"
        },
        "role": {
          "description": "The opponent's place on the arcade ladder.",
          "knownValues": [
            "regular",
            "boss",
            "finalBoss"
          ],
          "type": "string"
        },
        "score": {
          "description": "Points from this match.",
          "minimum": 0,
          "type": "integer"
        },
        "seed": {
          "description": "The match's random seed (32-bit).",
          "minimum": 0,
          "type": "integer"
        },
        "setup": {
          "ref": "#matchSetup",
          "type": "ref"
        },
        "stage": {
          "description": "The stage's name.",
          "maxLength": 64,
          "type": "string"
        },
        "won": {
          "description": "Whether the player won the match.",
          "type": "boolean"
        }
      },
      "required": [
        "opponent",
        "won",
        "role",
        "score",
        "seed",
        "frames",
        "setup"
      ],
      "type": "object"
    },
    "matchSetup": {
      "description": "Everything besides player 1's presses that the fight simulation and the CPU read.",
      "properties": {
        "cpu": {
          "description": "The CPU opponent; absent means player 2 was human.",
          "ref": "#cpu",
          "type": "ref"
        },
        "introFrames": {
          "description": "Frames before inputs count each round.",
          "minimum": 0,
          "type": "integer"
        },
        "outroFrames": {
          "description": "Frames after a K.O. or time over.",
          "minimum": 0,
          "type": "integer"
        },
        "roundTime": {
          "description": "Seconds per round; absent means no time limit.",
          "minimum": 1,
          "type": "integer"
        },
        "scales": {
          "description": "Each fighter's size in percent.",
          "items": {
            "minimum": 1,
            "type": "integer"
          },
          "maxLength": 2,
          "minLength": 2,
          "type": "array"
        },
        "stageW": {
          "description": "The stage's width in pixels.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "introFrames",
        "outroFrames",
        "scales",
        "stageW"
      ],
      "type": "object"
    }
  },
  "description": "One saved scoring attempt in Skeet Fighter II arcade mode, by the account that owns the record.",
  "id": "at.skeetfighter.score",
  "lexicon": 1
}
```
