Skip to content
UdemyUnityPaid courseAll LevelsCertificate

Learn To Code Trading Card Game Battle System With Unity 3D (Udemy.com)

A comprehensive and easy to learn guide to crate a trading card game battle system with Unity 3D.

Created by: Sandor Kiss

Last updated October 2023

icon
What you will learn

  • Create beautiful custom cards and creatures for your game
  • Show enlarged previews when you are hovering over a card or a creature
  • Enable card rotation and design a custom card back
  • Highlight cards that your players can play and creatures that can attack this turn with glows around their border
  • 2 different ways to drag cards in trading card games: just dragging cards onto the battlefield area to play them, or dragging onto a specific target to cast spell or attack with creatures
  • Show targeting gizmo with an arrow and a target icon when attacking with creatures or casting spells
  • Create adaptive layouts for your player’s hand and table areas. We are not using pre-determined places for cards. All the creatures and cards will always remain centered
  • Make a Hearthsone-styled mana pool with 10 mana crystals. Players start the game with 0 mana and in the start of each turn they will receive 1 mana crystal

How it compares

Against the other 183 rated Udemy courses in Unity on CourseDuck:

  • Rating4.0 out of 5higher than 6% of them
  • Reviews1,309#35 of 184 by number of reviews
  • Length15.7 hourslonger than 72% of them
  • Last updatedOctober 2023more recently than 72% of them

icon
Course Description

This course provides a full guide on trading card game battle mechanics.

The material in this course is divided into 6 Sections. Section 1 features a short introduction to the course. 

In Section 2 we will focus on making cards. We will use Unity UI features to create both faces and card backs of our cards. Spell cards and creature cards will be designed a bit differently. Creature cards will have distinctive oval frames around creature images. You will learn how to rotate cards that are made with Unity UI properly. We will do some scripting to make a simple system that will allow us to create and edit our cards as assets in Unity.

In Section 3 we will continue working on different visual elements: mana pools, rope timer, hero portraits, end turn button and so on. By the end of this Section we will assemble a visual layout of our Battle Scene that our players will see in the final version of the game. We will also explore several scripts that will help us drag cards in the game, organize and display enlarged previews of cards and creatures.

In Section 4 we will prepare our project for bringing in all the scripts that will handle Logic in our game. We`ll start by taking a look at a small slideshow that will explain the relationship between Visual and Logical parts of our game. We`ll add several new Visual features – Damage Effects that will display amounts of damage taken by creatures or heroes in the game, a simple system that will show messages in the start of each turn and targeted dragging for spell cards and creature attacks.

Section 5 is the most complicated Section of this course in terms of scripting. We`ll bring all the remaining scripts, including all the Logic scripts into our project. Our goal for this Section is to establish the most basic game mechanics of drawing cards from deck, playing creatures onto the battlefield and attacking either our opponent`s hero or his creatures. We will also discuss turn management and test our burning rope timer.

In the final section of this course you will learn to create spell and creature effects for your game. Creature effects might be caused when the creature enters the battlefield, when the creature dies, when the turn starts or ends or even when certain events occur in the game (like: when your Hero takes damage, draws a card, etc…). We will also take a look at a simple AI script that will control our opponent`s behavior and let us play this game against the computer.

I have tried to save the project that I was working in as often as I can so that you can easily pick up the material from any point in this course. All these assets that are used to create cards, creatures, hero powers and other game elements are free for commercial use and available for download with this course. You can find detailed info on art and scripting assets and links to some other useful resources in the Credits file that you can download with this course.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Sandor Kiss

Hi, I'm Sandor!

I am passionate entrepreneur and performance marketer with ten thousands happy students.

Let me tell you my story...

At the age of 16, I founded my first online business. After being a full-time CPA marketer for more than 5 years, I decided to shift gears and use my skills to build companies.

Ever since, I have been lucky enough to do what I love the most: entrepreneurship, travelling the world, pushing my comfort zone and discovering things that I couldn't learn in the classroom.

One year ago, I decided to take the next step and share my knowledge with those who are ready to start their own business. This decision brought me to Udemy, where I am able to combine my biggest talents: entrepreneurship, marketing and teaching.

My teaching philosophy on Udemy is simple: I am crafting trainings that I wish I had available to me when I started my first company.

My courses serve a very important goal: helping you to transform your life and becoming a successful entrepreneur and marketer.

I've seen the impact a solid business can have on someone's life. That's why I can only encourage you not to miss out on this opportunity.

As of today, I've sold more than 800,000 trainings, established multiple successful online businesses and coached hundreds of students.

icon
More courses by Sandor Kiss

$129.99

$10.99

$10.99

$84.99

$14.99

$11.99

icon
More Unity courses

$79.99

$74.99

$149.99

$13.99

$149.99

$16.99

icon
Reviews

4.0

1,309 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Jiri Vystejn on 11/14/2023

I was expecting a little more. The course was basically just describing author's own project and how it woks. There were only few details teaching you how the core C# functions work and how you can use them to create something on your own. The best way to learn anything is hands-on approach and there was close to none. Just talking about what there is and what it does in "This method is responsible for this and this class does this" way with very little detail how exactly. I am sorry to say, but I would not recommend this course.

By Darren Perrine on 11/22/2021

Excellent Course!!! Initially, I was a little concerned over some of the steps the instructor took; however, I then realized that this course is actually 5 years old. Some of the steps the instructor took are not necessary today but are easily remedied. Even though, the class is a little outdated everything works very well and I learned a great deal. The instructor makes excellent use of the Command Pattern, Observer Pattern and Strategy Pattern. It is true that the code is not type-along, which I do prefer personally; however, I get it with this course. There is so much material that this course would be just too long to type and explain every class. You are getting a volume of methods and well structured code with this course. (Note: In some cases consistency and naming conventions get a little off but that's typical of any project this large. A little refactoring is necessary). The instructor does an excellent job going over the important classes and minimizes discussion on classes that are very similar in code and function. Also, having purchased quite a few classes on Udemy you can gauge a great deal about the class and instructor by immediately going to the Q&A portion of the class and reading the questions being asked and the instructors responses. I am confident in saying that the instructor is by far one of the most responsive I have ever seen. Some of the questions posed by students had nothing to do with the material but were feature requests. The instructor took the time to assist with the code and provide direction on best strategy - just awesome! In conclusion, the class is well worth the time, money and effort. And, in the end you get a a nice functional game that can be easily expanded on.

By Jeremy Kings on 1/8/2021

Overall, great course. Probably would not recommend it for someone just getting into game development, as an understanding of C# and basic game implementation / math is necessary to really understand what's going on with the scripts. That being said, it's pretty much exactly what I was looking for. It's been fun figuring out how to meld the scripts and ideas presented here with my own so that I end up with the game that I want to make. Overall, the architecture seems pretty solid so far, will update my review once I get further in the course.

By Sndor Cserni on 12/20/2020

Lots of content but I'm sorry, the whole teaching method was just boring as hell and I had to stop...I was excited for around 3-4 videos.

By Nicolas David Vergara Jimenez on 11/16/2020

Muy bueno, para mi gusto falt algo de profundidad en el desarrollo del codigo, pero en general bueno.

By Luis Ayuso on 10/27/2020

A very well explained course, with scheduled examples and easy to follow (you must know Unity).
It is very recommendable for programming card game and every mechanics of it.
Many thanks.

By Bart Spits on 10/26/2020

Almost everything is well explained, good for c# and unity beginners like me. You come across several ways to use c# that are interesting. The final 'product' does a lot of things well and you do gain enough understanding to then work on it and make it a bit different and into something you were looking for.
Overall I've learned a lot from it so I would recommend it, for beginners especially.

By Renaud Gobert on 10/5/2020

Could benefit of more preparation upfront but it covers interesting aspects (especially Card Asset and Commands)

By Jonas Nattkamp on 10/2/2020

It's a mess. Just copy/paste scripts. Tutor seems overwhelmed by his game architecture.

By Fu Un on 9/23/2020

Great course. Word of warning: if you are an absolute beginner, I would recommend taking a basic Unity/C# course prior to this. Because it isn't a code-along, you need to be able to read and parse pre-made code. Even though the code was provided and not written during the course, I learned A LOT of intermediate/ advanced C# implementations. If you have any sort of inkling for creating a card-based game, this is an excellent course to grab inspiration and general code architecture.

By Alex Berrocal on 9/21/2020

He does things that later he does not explain how he did them. It shows many things that are already done and does not explain how it got there.

By Evren Halavut on 8/23/2020

Unfortunately you don't learn much from the course. Instructor goes over the script, and explains what each script is used for; however, doesn't explain the rationale behind the code; doesn't go into details explaining the components, which doesn't help to learn coding. The idea is like "this is the code, let's read it together". I wish it was structured differently.

Showing 12 of 321 reviews

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 80 / 100