Adds parchís game board, improves tabletop system to support other games. (#4610)
This commit is contained in:
committed by
GitHub
parent
5534aec102
commit
e440df03db
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user