diff --git a/autoload/SceneManager.cs b/autoload/SceneManager.cs index 8649f26..0970293 100644 --- a/autoload/SceneManager.cs +++ b/autoload/SceneManager.cs @@ -8,6 +8,7 @@ public partial class SceneManager : Node public const string GameUI = "res://scenes/ui/game_ui/GameUI.tscn"; public const string PausePopup = "res://scenes/ui/pause/PausePopup.tscn"; public const string GameOver = "res://scenes/ui/game_over/GameOver.tscn"; + public const string GameGuide = "res://scenes/ui/game_guide/PlayGuide.tscn"; private Node _currentScene; diff --git a/project.godot b/project.godot index 160485d..7d00823 100644 --- a/project.godot +++ b/project.godot @@ -10,7 +10,7 @@ config_version=5 [application] -config/name="PatternShift" +config/name="PatternShiftV7" run/main_scene="uid://bllyklhjrkoao" config/features=PackedStringArray("4.7", "C#", "GL Compatibility") config/icon="uid://dse0xvs2tbsqe" diff --git a/scenes/game/cards/Card.cs b/scenes/game/cards/Card.cs index 83b1492..f3b79a3 100644 --- a/scenes/game/cards/Card.cs +++ b/scenes/game/cards/Card.cs @@ -3,6 +3,8 @@ public partial class Card : Control { + private AudioStreamPlayer _sound; + private AudioStreamPlayer _sound2; private Panel _background; private VBoxContainer _shapesContainer; private TextureRect _shapeTemplate; @@ -11,6 +13,7 @@ public partial class Card : Control private GpuParticles2D _selectionParticles; private Vector2 _baseScale = Vector2.One; private int _originalZIndex = 0; + public int CCount = 0; public enum ShapeType { Rectangle, Triangle, Hexagon } public enum FillType { Empty, Striped, Solid } @@ -40,11 +43,11 @@ public CardStyleParams(float width, float height, int separation) { ColorType.Purple, new Color("#9C27B0") } }; - private ShapeType _shape = ShapeType.Rectangle; - private ColorType _color = ColorType.Blue; - private FillType _fill = FillType.Empty; - private int _count = 1; - private bool _isSelected = false; + public ShapeType _shape = ShapeType.Rectangle; + public ColorType _color = ColorType.Blue; + public FillType _fill = FillType.Empty; + public int _count = 1; + public bool _isSelected = false; private float _currentScale = 1.0f; public override void _Ready() @@ -55,6 +58,10 @@ public override void _Ready() _highlight = GetNode("Highlight"); _clickArea = GetNode