Example #1
0
 //Color Color)
 public Enemy(Texture2D Texture, Vector2 Position, EnemyType Enemytype)
 {
     Type = Enemytype;
     position = Position;
     animator = new Animator(Texture, 2, 35, 55, 1, 2);
     //color = Color;
 }
Example #2
0
 //private List<int> randomizator;
 public Player(Texture2D Texture, Vector2 Position)
 {
     position = Position;
     playerAnimator = new Animator(Texture, 1, 35, 55, 1, 2);
     for (int i = 1; i < directionList.Count; i++)
     {
         directionList[i] = Vector2.Normalize(directionList[i]);
     }
 }