10 Camera::Camera(int width, int height, const Vector<Fixed<8> > *target)
11 : target(target), halfWidth(width / 2), halfHeight(height / 2) {
16 void Camera::SetTarget(const Vector<Fixed<8> > *t) {
21 Vector<int> Camera::CalculateOffset() const {
24 (target->X().Int() - halfWidth) * -1,
25 (target->Y().Int() - halfHeight) * -1);