#include <default.c>
#define PRAGMA_PATH "%EXE_DIR%\samples"
FONT* A20b = "Arial#20b";
function main()
{
level_load("small.hmp");
vec_set(camera.x,vector(-300,0,20));
ent_create(CUBE_MDL, vector(0,0,0), NULL);
PANEL *pInfo = pan_create(NULL,0);
pan_setdigits(pInfo,0,1,5,"FOV = %f", A20b, 1, camera.arc);
pan_setcolor(pInfo,1,1,COLOR_GREEN);
pInfo.pos_x = 5; pInfo.pos_y = 110;
set(pInfo, OUTLINE|SHOW);
def_debug();
camera.arc = 65;
while (1)
{
while (camera.arc > 10)
{
camera.arc = clamp((camera.arc += 10 * mickey.z * time_step/16), 10, 120);
wait (1);
}
while (camera.arc < 11)
{
vec_add(camera.pan, vector((5 - random(10)) * 0.01 * time_step, (5 - random(10)) * 0.01 * time_step, 0));
camera.arc = clamp((camera.arc += 10 * mickey.z * time_step/16), 10, 120);
wait (1);
}
wait(1);
}
}