db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
895 stars 96 forks source link

Add switch to enable grid placement #95

Closed db0 closed 3 years ago

db0 commented 3 years ago

An extended version of this would place cards in specific positions, possibly based on type.Those positions will be able to be configured in the visual editor. Some sort of Empty Panel?

db0 commented 3 years ago

An idea I had which would also tackle #96 is that the player could instance specific scenes created for this purpose, that will be transparent. They will be gridcontainers with Area2D inside which would allow them to highlight as the card moves over them. However their purpose would be simply to highlight the position the card will drop onto and then use the same global_position that was highlighted to place the card on the board directly. This avoids me having to add more logic for cards being in gridcontainers instead of directly on the board.