From c2ade7bf85fad129911ea03f9fd7c46af01d0693 Mon Sep 17 00:00:00 2001 From: Litsan69 Date: Mon, 28 Apr 2025 22:09:34 +0600 Subject: [PATCH] Update Snap.cs --- src/GameLogic/Snap.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/GameLogic/Snap.cs b/src/GameLogic/Snap.cs index 42894a1a7..939204458 100644 --- a/src/GameLogic/Snap.cs +++ b/src/GameLogic/Snap.cs @@ -37,6 +37,7 @@ public class Snap public Snap () { _deck = new Deck (); + _gameTimer = SwinGame.CreateTimer (); } /// @@ -91,7 +92,8 @@ public void Start() _started = true; _deck.Shuffle (); // Return the cards and shuffle - FlipNextCard (); // Flip the first card... + FlipNextCard (); + gameTimer.Start (); } } @@ -111,7 +113,11 @@ public void FlipNextCard() /// public void Update() { - //TODO: implement update to automatically slip cards! + if (_gameTimer.Ticks > _flipTime) + { + _gameTimer.Reset (); + FlipNextCard (); + }//TODO: implement update to automatically slip cards! } ///