예제 #1
0
파일: Bow.cs 프로젝트: postoakt/archer
 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;
 }
예제 #2
0
파일: Bow.cs 프로젝트: postoakt/archer
 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