Getting started with our project
We have planned to develop a card game similar to Magic and Heroes of Warcraft in which two elemental wizards will fight, invoking their minions thanks to a deck of cards. That's why we will create one independent class to implement the behavior and characteristics of these cards and another one to define the attributes of each wizard and keep the control of their deck.
As the aim of this chapter is to focus ourselves on the basis of online iOS games, we're taking an initial project as the starting point of our game. Open the code files of this chapter where you'll find ElementalWizards_init.zip
, which contains the initial project.
This project includes AppDelegate.h
, AppDelegate.m
, Card.h
, Card.m
, Wizard.h
, Wizard.m
, GameScene.h
, and GameScene.m
.
We will ignore both AppDelegate
files because they're exactly like those we saw in the previous chapter and they don't need any explanation. Let's take a look at Card.h
:
#import <Foundation/Foundation.h> #import...