//public Vector2 playerDir; //public Vector2 playerFric; public Player() { mode = pMode.Explore; hBox = new Rectangle(); mspeed = 6; //our movement speed shRate = 25; //our shooting rate animation = new Animation("proto_run_4", 50f, 10, true); oldKb = new KeyboardState(); oldMouse = new MouseState(); bList = new List <Bullet>(); sWidth = GameHolder.Game.Window.ClientBounds.Width; sHeight = GameHolder.Game.Window.ClientBounds.Height; //set the start coordinates and dimensions of hitbox //!!NOTE TO SELF: We need to make a new method that alters and returns the player coordinates!! hBox = new Rectangle(sWidth / 2 - 12, sHeight / 2 - 12, 24, 24); //(Width,height,x-coord,y-coord) rX = hBox.X; //our hitbox's x-coordinate rY = hBox.Y; //our hitbox's y-coordinate tmpRa = shRate; //The rate we actually modify when we check for alt-fire rate. look = -1; oldLook = -1; //playerDir = new Vector2(0,0); //playerFric = playerDir; }
public void setPMode(pMode m) { mode = m; }