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
907 stars 96 forks source link

Create a way to specify the board programmaticaly #49

Closed db0 closed 3 years ago

db0 commented 3 years ago

Currently the existing board has been defined using the Godot visual editor. These of course means that positions and dimentions are hardcoded and don't work well without stretching when changing resolution.

I would like a way for each game to specify the board setup using gdscript.

I'm envisioning something like a game.gd. There the player would specify for each CardContainer its anchor and its size relative to the viewport. They would also specify card_size there as well