mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 21:38:02 +03:00
25 lines
495 B
C
25 lines
495 B
C
#ifndef CAMERA_H
|
|
#define CAMERA_H
|
|
|
|
#include <psxgte.h>
|
|
|
|
#include "player.h"
|
|
|
|
typedef struct {
|
|
VECTOR pos;
|
|
VECTOR realpos;
|
|
int32_t extension_x;
|
|
int32_t extension_y;
|
|
uint8_t delay;
|
|
uint8_t lag;
|
|
int32_t max_x;
|
|
int32_t min_x;
|
|
} Camera;
|
|
|
|
void camera_init(Camera *);
|
|
void camera_update(Camera *, Player *);
|
|
void camera_set(Camera *, int32_t vx, int32_t vy);
|
|
void camera_set_right_bound(Camera *, int32_t vx);
|
|
void camera_set_left_bound(Camera *, int32_t vx);
|
|
|
|
#endif
|