Exemplo n.º 1
0
 public Bow(ContentManager content)
 {
     texture = content.Load<Texture2D>("Player\\bow");
     mouse = new MouseHandler(content);
     rotation = 0;
     position.X = 20;
     position.Y = SCREEN_HEIGHT - texture.Height + 46;
     origin.X = 20;
     origin.Y = 46;
     arrows = new List<Arrow>();
     arrows.Add(new Arrow(content, 36, SCREEN_HEIGHT - texture.Height + 52) );
     arrows.Add(new Arrow(content, 36, SCREEN_HEIGHT - texture.Height + 52));
     currentarrow = 0;
 }
Exemplo n.º 2
0
 public Bow(ContentManager content)
 {
     texture    = content.Load <Texture2D>("Player\\bow");
     mouse      = new MouseHandler(content);
     rotation   = 0;
     position.X = 20;
     position.Y = SCREEN_HEIGHT - texture.Height + 46;
     origin.X   = 20;
     origin.Y   = 46;
     arrows     = new List <Arrow>();
     arrows.Add(new Arrow(content, 36, SCREEN_HEIGHT - texture.Height + 52));
     arrows.Add(new Arrow(content, 36, SCREEN_HEIGHT - texture.Height + 52));
     currentarrow = 0;
 } // bow constructor