#include <acknex.h>
VECTOR vtemp;
function main ()
{
wait(2);
level_load ( "" );
wait(3);
camera.z = 100;
camera.tilt = -90;
you = ent_create ( CUBE_MDL, nullvector, NULL );
set ( you, TRANSLUCENT );
you.alpha = 30;
you.skill1 = ent_create ( CUBE_MDL, vector(20,0,0), NULL );
while (!key_esc)
{
you.pan += time_step * 10;
you.tilt = fsin ( you.pan, 10 );
vec_set ( vtemp, vector(10,0,0) );
vec_rotate ( vtemp, you.pan );
vec_add ( vtemp, you.x );
vec_set ( ((ENTITY*)you.skill1)->x, vtemp );
vec_set ( ((ENTITY*)you.skill1)->pan, you.pan );
wait(1);
}
sys_exit ( NULL );
}