diff --git a/.gitignore b/.gitignore index 0af181c..cd4dc5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Godot 4+ specific ignores .godot/ /android/ +.vs/slots/FileContentIndex diff --git a/.vs/slots/FileContentIndex/2c1cb54c-884e-46af-88be-dbb8b2b2cd87.vsidx b/.vs/slots/FileContentIndex/2c1cb54c-884e-46af-88be-dbb8b2b2cd87.vsidx deleted file mode 100644 index 0b32014..0000000 Binary files a/.vs/slots/FileContentIndex/2c1cb54c-884e-46af-88be-dbb8b2b2cd87.vsidx and /dev/null differ diff --git a/.vs/slots/FileContentIndex/6af12eb4-b31e-4107-84ad-4cdf8492e115.vsidx b/.vs/slots/FileContentIndex/6af12eb4-b31e-4107-84ad-4cdf8492e115.vsidx deleted file mode 100644 index 322cca7..0000000 Binary files a/.vs/slots/FileContentIndex/6af12eb4-b31e-4107-84ad-4cdf8492e115.vsidx and /dev/null differ diff --git a/.vs/slots/FileContentIndex/e07062da-369f-4b06-ac47-2208fc8c53f6.vsidx b/.vs/slots/FileContentIndex/e07062da-369f-4b06-ac47-2208fc8c53f6.vsidx deleted file mode 100644 index 5764a59..0000000 Binary files a/.vs/slots/FileContentIndex/e07062da-369f-4b06-ac47-2208fc8c53f6.vsidx and /dev/null differ diff --git a/.vs/slots/FileContentIndex/read.lock b/.vs/slots/FileContentIndex/read.lock deleted file mode 100644 index e69de29..0000000 diff --git a/.vs/slots/v17/.suo b/.vs/slots/v17/.suo index 562cb31..dd57171 100644 Binary files a/.vs/slots/v17/.suo and b/.vs/slots/v17/.suo differ diff --git a/SlotMachine.cs b/SlotMachine.cs index f1d5468..813ffc8 100644 --- a/SlotMachine.cs +++ b/SlotMachine.cs @@ -1,31 +1,129 @@ using Godot; +using Godot.NativeInterop; using System; +using System.Collections.Generic; public partial class SlotMachine : Sprite2D { [Export] public Wheel[] Wheels; + int _spins; + int _points; + + bool _isSpinning = false; + + public int Spins + { + get + { + return _spins; + } + set + { + _spins = value; + GetNode("%Spins").Text = _spins + " spins"; + } + } + + public int Points + { + get + { + return _points; + } + set + { + _points = value; + GetNode