1
Graphics / Another View Question
« on: May 05, 2011, 07:50:16 am »
I'm having trouble wrapping my head around View. Basically I want to create a world that say is 1024x768 but the screen size is only 800x600 (as example values). I want the view to shift based on if an arrow key is pressed. Kind of like Asteroids or Geometry Wars where the View centers on the player and the world moves around them.
Edit: Forgot to mention what I have so far. I basically have some code that has a Sprite with a position at the center of the screen and whenever I push an arrow key I try to move the view 30 units. The Sprite just stays and doesn't move.
Edit: Forgot to mention what I have so far. I basically have some code that has a Sprite with a position at the center of the screen and whenever I push an arrow key I try to move the view 30 units. The Sprite just stays and doesn't move.