engine-psx/include/camera.h

24 lines
424 B
C
Raw Normal View History

#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;
uint8_t delay;
uint8_t lag;
2024-10-03 00:32:02 -03:00
int32_t max_x;
} 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);
#endif