implemented game camera, target resolution, and refactored some misc. code