#include <acknex.h>
#include <default.c>
VECTOR jet_speed;
ENTITY* jet;
function main() {
video_mode = 7;
//set(pSplash,VISIBLE); // splash screen on
//wait(-3);
//reset(pSplash, VISIBLE); // splash screen off
printf("test");
fps_max = 140;
level_load("riverbed.hmp");
ent_createlayer("blood_gsmall+6.tga", SKY | CUBE | VISIBLE, 0);
wait(2);
jet = ent_create ("mig.mdl", vector(-400,0,100), NULL);
ph_setgravity (vector(0,0, -386));
phent_settype (jet, PH_RIGID, PH_CUBE);
phent_setmass (jet, 3, PH_CUBE);
phent_setfriction (jet, 80);
phent_setdamping (jet, 40, 40);
phent_setelasticity (jet, 50, 20);
while(1) {
jet_speed.x = 25 * (key_a - key_d);
jet_speed.y = 25 * (key_w - key_s);
jet_speed.z = 25 * (key_cuu - key_cud);
phent_addtorqueglobal (jet, jet_speed);
camera.x = jet.x - 300;
camera.y = jet.y;
camera.z = jet.z;
camera.tilt = -60;
wait (1);
}
}