public Game1() { graphics = new GraphicsDeviceManager(this); Components.Add(new InputHandler(this)); randomize = new KeyBoardInput(Keys.Space); camera = new Camera(ActualScreen); Content.RootDirectory = "Content"; }
public Camera(Rectangle ScreenSize) { up = new KeyBoardInput(Keys.Up); down = new KeyBoardInput(Keys.Down); left = new KeyBoardInput(Keys.Left); right = new KeyBoardInput(Keys.Right); Position = Point.Zero; ViewPort = ScreenSize; Speed = 2; }