fnk0 / MarcusGameEngine

1 stars 1 forks source link

Multiple Cameras #6

Closed RyanDawkins closed 9 years ago

RyanDawkins commented 9 years ago

The ability to switch between multiple cameras.

fnk0 commented 9 years ago

Yesterday I implemented multiple cameras and the ability to switch in between them using the numbers in the keyboard. Ex: 1 goes to camera 1, 2 to to 2, and so on... The cameras are basically in a vector and when the number key is pressed it switches the active camera to be the vec[numPressed-1].

Since the camera is rendered every second it automatically handles the position