feat: added global variables
This commit is contained in:
@@ -14,3 +14,7 @@ config/name="dujorak"
|
|||||||
run/main_scene="res://src/scenes/game.tscn"
|
run/main_scene="res://src/scenes/game.tscn"
|
||||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
[autoload]
|
||||||
|
|
||||||
|
Globals="*res://src/scripts/globals.gd"
|
||||||
|
|||||||
6
src/scripts/globals.gd
Normal file
6
src/scripts/globals.gd
Normal 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}
|
||||||
1
src/scripts/globals.gd.uid
Normal file
1
src/scripts/globals.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://cp7yt3d324xiv
|
||||||
Reference in New Issue
Block a user