Cards Game Part IX (Unity 5) – Blackjack Game Controller

Learn Blackjack Video Source & Info:

Long video again, sorry. Starting on the actual game logic today, which means we have to refactor some of the code. And I get a bit lost because I haven’t looked at the code in two weeks. This is why I do these videos ‘off the cuff’ because it shows my rambling working style. Honest 🙂

The Unity 5 package can be downloaded from my website and contains the project so far: http://sloankelly.net/wp-content/uploads/2015/08/Cards_Part_009.zip

Part I is here: https://www.youtube.com/watch?v=FxH8FoddkVY
Part II is here: https://www.youtube.com/watch?v=Ugn44sh9JNE
Part III is here: https://www.youtube.com/watch?v=D2zxZNG8KwE
Part IVa is here: https://www.youtube.com/watch?v=g-azqxkN5dw
Part IVb is here: https://www.youtube.com/watch?v=VQY357liiDw
Part V is here: https://www.youtube.com/watch?v=mzkXnfgfMys
Part VI is here: https://www.youtube.com/watch?v=cBBTleM36o8
Part VII is here: http://youtu.be/FaeNaxurdfo
Part VIII is here: https://www.youtube.com/watch?v=rHgK0U0ReE8

Download Unity 5 here: https://unity3d.com/get-unity

Download Visual Studio Community Edition 2013 here: https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

Download Visual Studio for Unity Package here: https://visualstudiogallery.msdn.microsoft.com/20b80b8c-659b-45ef-96c1-437828fe7cf2

Source: YouTube

Share this video:
Cards Game Part IX (Unity 5) – Blackjack Game Controller

10 thoughts on “Cards Game Part IX (Unity 5) – Blackjack Game Controller

  1. Wow, that was tough one.. Sometimes it is like you write some crazy code and pough! magic happens, it works, but i do not actually understand why and how it all works. But, i try to get basis of the GAME, not the code. Will try to catch up later, when i will (hopefully) know programming better.

  2. Another Fantastic Video! This series has kept me occupied all day but it's almost 1am so need to go lol, Will definitely finish off tomorrow!! Looking forward to the Conclusion!! Superb Work Sloan.

  3. Hey, So I've watched this video again today, I made an error yesterday but it was pretty late so I left it till today, My dealers first card is faceup and none of the rest are face up :/,, I can't spot where I've gone wrong at all, Any advice?

  4. Thanks for the great video! I am trying to make my own card game and it inspired me in so many aspects.

  5. Please kindly teach us multiplayer card game with betting option,even turn.Thanks a lot

  6. For those following along and coding, between 25:11 and 25:20 Start() was renamed to Awake() in CardStackView. If you missed this, it causes a null fetechedCards. Just rename Start() to Awake() to fix. Great series by the way!

  7. I keep get error about using 'new' in mono behavior. eventhough the game actually starts.

    You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all
    UnityEngine.MonoBehaviour:.ctor()
    CardView:.ctor(GameObject) (at Assets/Scripts/CardView.cs:8)
    CardStackView:AddCard(Vector3, Int32, Int32) (at Assets/Scripts/CardStackView.cs:117)
    CardStackView:ShowCards() (at Assets/Scripts/CardStackView.cs:77)
    CardStackView:Update() (at Assets/Scripts/CardStackView.cs:62)

    the problem is the last line of cardStackView.cs:

    fetchedCards.Add(cardIndex, new CardView(cardCopy));

    there's no single error pops out if I delete this line and play the game.
    But I don't know what to do…

    Any Solution..?

Comments are closed.