Added Checkers (#6219)

This commit is contained in:
Demetre Beroshvili
2022-01-18 15:44:24 -08:00
committed by GitHub
parent d4e89ecbfd
commit facb2ea849
9 changed files with 175 additions and 0 deletions

View File

@@ -82,5 +82,7 @@
amount: 1
- id: ParchisBoard
amount: 1
- id: CheckerBoard
amount: 1
- id: d6Dice
amount: 4

View File

@@ -0,0 +1,76 @@
# Uses the chessboard and generic pieces
- type: entity
parent: BaseItem
id: CheckerBoard
name: checkerboard
description: A checkerboard. Pieces included!
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/chessboard.rsi
state: chessboard
- type: TabletopGame
boardName: tabletop-checkers-board-name
size: 338, 274
setup: !type:TabletopCheckerSetup
# Checkerboard tabletop item (item only visible in tabletop game)
- type: entity
id: CheckerBoardTabletop
name: checkerboard
abstract: true
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/chessboard_tabletop.rsi
state: chessboard_tabletop
noRot: false
drawdepth: FloorTiles
- type: entity
id: BaseCheckerPiece
parent: BaseItem
abstract: true
components:
- type: TabletopDraggable
- type: Sprite
netsync: false
noRot: true
- type: Appearance
visuals:
- type: TabletopItemVisualizer
# The pieces
- type: entity
id: WhiteCheckerPiece
name: white piece
parent: BaseCheckerPiece
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/checker_pieces.rsi
state: w_checker_piece
- type: entity
id: WhiteCheckerQueen
name: white queen
parent: BaseCheckerPiece
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/checker_pieces.rsi
state: w_checker_queen
- type: entity
id: BlackCheckerPiece
name: black piece
parent: BaseCheckerPiece
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/checker_pieces.rsi
state: b_checker_piece
- type: entity
id: BlackCheckerQueen
name: black queen
parent: BaseCheckerPiece
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/checker_pieces.rsi
state: b_checker_queen