// __autor__ = Juan Carlos De Abreu R.
// __date__ = 03/19/2008
// __version__ = 1.0
//
// This file define an camera for the LAPAROS project exercises.
//

// Set the camera position.
camera = Camera();
camera.setActive();
camera.setPos(0, 8, 10);

cameraStep = 1;

// 
setKeyFunc("UP", moveCameraFordward());
setKeyFunc("DOWN", moveCameraBackward());
setKeyFunc("LEFT", moveCameraLeft());
setKeyFunc("RIGHT", moveCameraRight());

def moveCameraFordward() {
  camera.moveFordward(cameraStep);
}

def moveCameraBackward() {
  camera.moveBackward(cameraStep);
}

def moveCameraLeft() {
  camera.moveLeft(cameraStep);
}

def moveCameraRight() {
  camera.moveRight(cameraStep);
}
