Develop Trading Card Game Battle System With Unity 3D: Part XVI (Card & Creature Scripts, ID System)

Vladimir Limarchenko, Game Developer, Unity3d and C#

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
3 Videos (43m)
    • Rope Testing and Unity Events

      11:44
    • Card Scripts and ID System

      12:54
    • Creature Script

      18:38

About This Class

In this class/series we set an ambitious goal of developing our own trading card game with Unity3d and C#, mostly focusing on card game battle mechanics.

Learn about the scripts that should represent cards and creatures in the logical part of your game:

  • We`ll overview the scripts CardLogic.cs and CreatureLogic.cs. These scripts hold all the information that we need to simulate our card battle in Logic.
  • Make a simple ID system that will let these card and creature logical objects know about their representation in the visual part of the game.

Because we are simulating a proper card game architecture and Logic is separated from the visual presentation, our card will be represented by two separate objects. One of them will represent our card in Logic, but it will have no visual representation in the game. Objects like this just hold the information that we need to know about our cards. We`ll also have a visual representation of our card (the face of the card with the description, main image, mana cost, stats, etc… and a card back). To bind them together and to make our cards in Logic know about their visual representation and vice-versa, we`ll introduce a very simple system of IDs. We`ll use the same IDs for our cards, creatures and even players.

With this class you will gain access to a compete, fully functional Unity project that is an example of a card game battle. The game mechanics are somewhat similar to Hearthstone: custom spells, hero powers, creature effects and so on.

Additional information:

  • The files showed in the course are downloadable from the link that you can find in the "Class Project".
  • The next class of this series will be published on 2017.01.09.

60

Students

--

Projects

0

Reviews (0)

Vladimir Limarchenko

Game Developer, Unity3d and C#

I am a Unity3d and C# developer with about 2,5 years of experience in game development. I also have a scientific background. I got a Ph.D. in Theoretical Mechanics in 2014, but then decided to pursue my childhood dream of becoming a game developer. I'm mostly interested in making 2D games. In my opinion, a perfect game should have some tactical or puzzle element to it. 

Over the last couple of years I've also worked as an instructor and created several courses on game development. Some of the topics of my courses are: making a 2048 game, building quiz apps, creating a simple virtual pet game, animating 2d characters, building an in-game character customization system.

I'm always willing to experiment and work on some interesting and challenging game mechanics.