drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

[Feature request] Add “exchangeable piece” #160

Open GrimPixel opened 1 year ago

GrimPixel commented 1 year ago

In chess, a pawn may promote. In other games, there are also similar situations where a piece needs to be exchanged. So, it would be easy to simply right-click on the piece, open a pre-defined list and do the change.

drwhut commented 1 year ago

Hmm... the thing is, this mechanic would be very specific to certain games. I could see this being implemented for specific games via a scripting API once one is added (hence the label), but I'm not 100% sure if there should be a "generic" solution.

GrimPixel commented 1 year ago

Maybe it can be specified in the cfg file. Certain pieces have an attribute, which is a list of pieces to change to.