feat: added global variables

This commit is contained in:
2025-06-24 19:51:16 +02:00
parent 9ed12eb4e1
commit ad525e67e9
3 changed files with 11 additions and 0 deletions

View File

@@ -14,3 +14,7 @@ config/name="dujorak"
run/main_scene="res://src/scenes/game.tscn"
config/features=PackedStringArray("4.4", "Forward Plus")
config/icon="res://icon.svg"
[autoload]
Globals="*res://src/scripts/globals.gd"

6
src/scripts/globals.gd Normal file
View File

@@ -0,0 +1,6 @@
extends Node
enum Suits {HEARTS, DIAMONDS, CLUBS, SPADES}
enum Values {SIX = 6, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE}
enum GameState {SETUP, ATTACK, DEFEND, DRAW_PHASE, GAME_OVER}
enum JokerType {DOUBLE_ATTACK, TRUMP_CHANGE, DRAW_BLOCK}

View File

@@ -0,0 +1 @@
uid://cp7yt3d324xiv