blob: 46c2d93cc357ebdea569cf878b0259d2242fecc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "engine/camera.h"
#include "ppu/consts.h"
vec_cor hh_update_camera(vec_cen new, vec2 min, vec2 max){
new = vec_cen2cor(new,(vec2){.x=20,.y=30});
static vec_cor old;
old.x = CLAMP(new.x,min.x,max.x);
old.y = CLAMP(new.y,min.y,max.y);
return old;
}
|