21 lines
464 B
C
21 lines
464 B
C
#ifndef CAMERA_H
|
|
#define CAMERA_H
|
|
|
|
// Top left corner coordinates
|
|
int cameraX();
|
|
int cameraY();
|
|
|
|
/* Auto track mario,
|
|
The delay is custom:
|
|
0 default
|
|
1 to follow perfectly mario, no delay
|
|
the higher the delay is, the longest time the camera takes to go to mario (recommended as inferior to 6)
|
|
*/
|
|
void cameraMove();
|
|
|
|
void cameraReset(); // Reset camera to (0,0)
|
|
|
|
void cameraAdjust(); // Set camera on mario -> useful when there is a pipe, for example
|
|
|
|
#endif
|