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

@@ -11,3 +11,6 @@ tabletop-parchis-board-name = Parchís
## Backgammon
tabletop-backgammon-board-name = Backgammon
## Checkers
tabletop-checkers-board-name = Checkers

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Zumorica, Fishfish458, Capnsockless",
"size": {
"x": 24,
"y": 24
},
"states": [
{
"name": "w_checker_piece"
},
{
"name": "w_checker_queen"
},
{
"name": "b_checker_piece"
},
{
"name": "b_checker_queen"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB