示例#1
0
 public static Hero CreateHero(ContentManager content)
 {
     Texture2D heroTexture = content.Load<Texture2D>("BigBlueMage");
     Hero hero = new Hero(SpellType.Ice, new Rectangle(50, 450, heroTexture.Bounds.Width, heroTexture.Bounds.Height), heroTexture, 1);
     return hero;
 }
示例#2
0
 public static Hero CreateEnemyHero(ContentManager content)
 {
     Texture2D enemyTexture = content.Load<Texture2D>("BigBlueMage");
     Hero enemy = new Hero(SpellType.Ice, new Rectangle(1080, 450, enemyTexture.Bounds.Width, enemyTexture.Bounds.Height), enemyTexture, 1);
     return enemy;
 }