mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
Show single card properly upright
This commit is contained in:
parent
eb4f46e52f
commit
7d7b15e3fb
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ func arrange_cards():
|
||||||
var angle_between_cards = 0
|
var angle_between_cards = 0
|
||||||
if amount_cards > 1:
|
if amount_cards > 1:
|
||||||
angle_between_cards = total_angle / (amount_cards-1)
|
angle_between_cards = total_angle / (amount_cards-1)
|
||||||
|
else:
|
||||||
|
total_angle = 0
|
||||||
|
|
||||||
var current_angle = -total_angle/2
|
var current_angle = -total_angle/2
|
||||||
for card in get_tree().get_nodes_in_group("cards"):
|
for card in get_tree().get_nodes_in_group("cards"):
|
||||||
|
|
Loading…
Reference in a new issue