{
  "_notes": [
    "Batman [Data East, 1991]",
    "Originally compiled by Horsepin.  Updated by Tom Collins"
  ],
  "_fileformat": 0.8,
  "_metadata": {
    "version": 4,
    "copyright": [
      "Copyright (C) 2016 by Dave horsepin <horse@horsesoft.uk>",
      "Copyright (C) 2025 by Tom Collins <tom@scorbit.io>"
    ],
    "license": "GNU Lesser General Public License v3.0",
    "platform": "dataeast",
    "roms": [
      "btmn_103",
      "btmn_106",
      "btmn_f13",
      "btmn_g13"
    ]
  },
  "game_state": {
    "scores": [
      {
        "label": "Player 1",
        "encoding": "bcd",
        "offsets": [
          "0x20",
          "0x10",
          "0x11",
          "0x12",
          "0x13"
        ]
      },
      {
        "label": "Player 2",
        "encoding": "bcd",
        "offsets": [
          "0x21",
          "0x14",
          "0x15",
          "0x16",
          "0x17"
        ]
      },
      {
        "label": "Player 3",
        "encoding": "bcd",
        "offsets": [
          "0x22",
          "0x18",
          "0x19",
          "0x1A",
          "0x1B"
        ]
      },
      {
        "label": "Player 4",
        "encoding": "bcd",
        "offsets": [
          "0x23",
          "0x1C",
          "0x1D",
          "0x1E",
          "0x1F"
        ]
      }
    ],
    "credits": {
      "label": "Credits",
      "start": "0x1DDE",
      "encoding": "bcd"
    },
    "free_play": {
      "label": "Free Play",
      "start": "0x1E04",
      "encoding": "bool"
    },
    "max_credits": {
      "label": "Max Credits",
      "start": "0x1E0F",
      "encoding": "bcd"
    },
    "player_count": {
      "label": "Player Count",
      "start": "0x87",
      "encoding": "int"
    },
    "ball_count": {
      "label": "Ball Count",
      "start": "0x1E0D",
      "encoding": "bcd"
    },
    "current_player": {
      "label": "Player",
      "start": "0x86",
      "encoding": "int"
    },
    "current_ball": {
      "label": "Ball",
      "start": "0x4E",
      "encoding": "int"
    },
    "game_over": {
      "_notes": "game is over if current player/ball is 0",
      "label": "Game Over",
      "start": "0x86",
      "encoding": "bool",
      "invert": true
    }
  },
  "high_scores": [
    {
      "label": "First",
      "short_label": "#1",
      "initials": {
        "start": "0x1DCA",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB0",
          "0x1D98",
          "0x1D99",
          "0x1D9A",
          "0x1D9B"
        ]
      }
    },
    {
      "label": "Second",
      "short_label": "#2",
      "initials": {
        "start": "0x1DCD",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB1",
          "0x1D9C",
          "0x1D9D",
          "0x1D9E",
          "0x1D9F"
        ]
      }
    },
    {
      "label": "Third",
      "short_label": "#3",
      "initials": {
        "start": "0x1DD0",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB2",
          "0x1DA0",
          "0x1DA1",
          "0x1DA2",
          "0x1DA3"
        ]
      }
    },
    {
      "label": "Fourth",
      "short_label": "#4",
      "initials": {
        "start": "0x1DD3",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB3",
          "0x1DA4",
          "0x1DA5",
          "0x1DA6",
          "0x1DA7"
        ]
      }
    },
    {
      "label": "Fifth",
      "short_label": "#5",
      "initials": {
        "start": "0x1DD6",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB4",
          "0x1DA8",
          "0x1DA9",
          "0x1DAA",
          "0x1DAB"
        ]
      }
    },
    {
      "label": "Sixth",
      "short_label": "#6",
      "initials": {
        "start": "0x1DD9",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1DB5",
          "0x1DAC",
          "0x1DAD",
          "0x1DAE",
          "0x1DAF"
        ]
      }
    }
  ]
}
