2024-08-05 00:12:44 -03:00
|
|
|
#ifndef CAMERA_H
|
|
|
|
#define CAMERA_H
|
|
|
|
|
|
|
|
#include <psxgte.h>
|
|
|
|
|
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
VECTOR pos;
|
2024-08-18 22:36:35 -03:00
|
|
|
VECTOR realpos;
|
|
|
|
int32_t extension_x;
|
|
|
|
int32_t extension_y;
|
2024-08-19 01:05:12 -03:00
|
|
|
uint8_t delay;
|
2024-08-26 23:42:07 -03:00
|
|
|
uint8_t lag;
|
2024-10-03 00:32:02 -03:00
|
|
|
int32_t max_x;
|
2024-08-05 00:12:44 -03:00
|
|
|
} Camera;
|
|
|
|
|
|
|
|
void camera_init(Camera *);
|
|
|
|
void camera_update(Camera *, Player *);
|
2024-08-18 22:36:35 -03:00
|
|
|
void camera_set(Camera *, int32_t vx, int32_t vy);
|
2024-10-03 00:32:02 -03:00
|
|
|
void camera_set_right_bound(Camera *, int32_t vx);
|
2024-08-05 00:12:44 -03:00
|
|
|
|
|
|
|
#endif
|