Adds parchís game board, improves tabletop system to support other games. (#4610)

This commit is contained in:
Vera Aguilera Puerto
2021-09-18 10:40:38 +02:00
committed by GitHub
parent 5534aec102
commit e440df03db
18 changed files with 320 additions and 82 deletions

View File

@@ -1,5 +1,10 @@
## TabletopGameComponent
tabletop-verb-play-game = Play Game
tabletop-default-board-name = Board Game
## Chess
tabletop-chess-board-name = Chess
tabletop-chess-flip = Flip
## Parchís
tabletop-parchis-board-name = Parchís

View File

@@ -9,6 +9,9 @@
sprite: Objects/Fun/Tabletop/chessboard.rsi
state: chessboard
- type: TabletopGame
boardName: tabletop-chess-board-name
size: 338, 274
setup: !type:TabletopChessSetup
# Chessboard tabletop item (item only visible in tabletop game)
- type: entity

View File

@@ -0,0 +1,74 @@
# Parchís board item (normal in game item you can hold in your hand)
- type: entity
parent: BaseItem
id: ParchisBoard
name: parchís board
description: Cross and circle board game famous for destroying countless friendships.
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/parchis.rsi
state: board
- type: TabletopGame
boardName: tabletop-parchis-board-name
size: 574, 574
setup:
!type:TabletopParchisSetup
# Parchís tabletop item (item only visible in tabletop game)
- type: entity
id: ParchisBoardTabletop
name: parchís
abstract: true
components:
- type: Sprite
sprite: Objects/Fun/Tabletop/parchis_tabletop.rsi
state: board
noRot: false
drawdepth: FloorTiles
# Parchís pieces
- type: entity
id: BaseParchisPiece
parent: BaseItem
abstract: true
components:
- type: TabletopDraggable
- type: Sprite
netsync: false
noRot: true
sprite: Objects/Fun/Tabletop/parchis_pieces.rsi
- type: Appearance
visuals:
- type: TabletopItemVisualizer
- type: entity
id: RedParchisPiece
name: red piece
parent: BaseParchisPiece
components:
- type: Sprite
state: red
- type: entity
id: GreenParchisPiece
name: green piece
parent: BaseParchisPiece
components:
- type: Sprite
state: green
- type: entity
id: YellowParchisPiece
name: yellow piece
parent: BaseParchisPiece
components:
- type: Sprite
state: yellow
- type: entity
id: BlueParchisPiece
name: blue piece
parent: BaseParchisPiece
components:
- type: Sprite
state: blue

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

View File

@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Zumorica",
"size": {
"x": 18,
"y": 18
},
"states": [
{
"name": "board"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

View File

@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Zumorica",
"size": {
"x": 24,
"y": 24
},
"states": [
{
"name": "red"
},
{
"name": "green"
},
{
"name": "yellow"
},
{
"name": "blue"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Zumorica",
"size": {
"x": 548,
"y": 548
},
"states": [
{
"name": "board"
}
]
}