Exemplo n.º 1
0
 public Player(Texture2D texture, Texture2D playerFeetTexture, MousePointer mousepointer, string name, TextureManager textureManager)
     : base(texture)
 {
     this.textureManager = textureManager;
     ChangeName(name);
     Direction             = new Vector2(0, 0);
     playerFeet            = new PlayerFeet(playerFeetTexture);
     playerFeet.layerDepth = .9f;
     this.mousePointer     = mousepointer;
     origin     = new Vector2(texture.Width / 2, texture.Height / 2);
     Velocity   = 5;
     layerDepth = .9f;
     scale      = .5f;
 }