supercasiobros/include/camera.h

20 lines
480 B
C
Raw Permalink Normal View History

2020-01-29 14:34:57 +01:00
#ifndef CAMERA_H
#define CAMERA_H
// Top left corner coordinates
int camera_x();
int camera_y();
/* 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)
*/
2020-01-29 18:24:33 +01:00
void camera_move(int delay);
2020-01-29 14:34:57 +01:00
void camera_reset(); // Reset camera to (0,0)
void camera_adjust(); // Set camera on mario -> useful when there is a pipe, for example
#endif