Ejemplo n.º 1
0
 public Player2(Texture2D player_texture, Rectangle hitbox)
     : base(2, player_texture, hitbox)
 {
     this.player_texture = player_texture;
     this.Position = new Vector2(400, 300);
     this.Velocity = new Vector2(0, 0);
     this.Speed = 0.01f;
     controlsplayer2 = new ControlsPlayer2(Position, Velocity, Speed);
 }
Ejemplo n.º 2
0
 public Player2(Texture2D player_texture, Rectangle hitbox)
     : base(2, player_texture, hitbox)
 {
     this.player_texture = player_texture;
     this.Position       = new Vector2(400, 300);
     this.Velocity       = new Vector2(0, 0);
     this.Speed          = 0.01f;
     controlsplayer2     = new ControlsPlayer2(Position, Velocity, Speed);
 }