Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/GameLogic/Snap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class Snap
public Snap ()
{
_deck = new Deck ();
_gameTimer = SwinGame.CreateTimer ();
}

/// <summary>
Expand Down Expand Up @@ -91,7 +92,8 @@ public void Start()
_started = true;
_deck.Shuffle (); // Return the cards and shuffle

FlipNextCard (); // Flip the first card...
FlipNextCard ();
gameTimer.Start ();
}
}

Expand All @@ -111,7 +113,11 @@ public void FlipNextCard()
/// </summary>
public void Update()
{
//TODO: implement update to automatically slip cards!
if (_gameTimer.Ticks > _flipTime)
{
_gameTimer.Reset ();
FlipNextCard ();
}//TODO: implement update to automatically slip cards!
}

/// <summary>
Expand Down