#include <acknex.h>
#include <default.c>
#define PRAGMA_PATH "pics"
#include "debug.c"
ENTITY* ent_pic[8];
var var_offset = 0;
void main(){
wait(1);
level_load(NULL);
STRING* str_temp = str_create("");
VECTOR vec_temp;
vec_temp.z = 0;
int i;
for(i = 0; i < 8; i++){
str_cpy(str_temp, "pic");
str_cat_num(str_temp, "%.0f.jpg", i);
vec_temp.x = sin(i * 45) * 200;
vec_temp.y = cos(i * 45) * 200;
debug_str2("STR", str_temp);
ent_pic[i] = ent_create(str_temp, vec_temp, NULL);
vec_to_angle(ent_pic[i].pan, vec_temp);
}
//position camera
vec_set(camera.x, vector(-520, 0, 260));
vec_set(vec_temp, nullvector);
vec_sub(vec_temp, camera.x);
vec_to_angle(camera.pan, vec_temp); // now MY looks at YOU
vec_temp.z = 0;
while(1){
if(mouse_moving){
var_offset += mickey.x;
for(i = 0; i < 8; i++){
vec_temp.x = sin((i * 45) + var_offset) * 200;
vec_temp.y = cos((i * 45) + var_offset) * 200;
vec_set(ent_pic[i].x, vec_temp);
vec_to_angle(ent_pic[i].pan, vec_temp);
}
}
wait(1);
}
}