#include <acknex.h>
#include <default.c>
ENTITY* pointer;
VECTOR jump;
function main()
{
video_screen = 2;
video_mode = 8;
mouse_mode = 1;
fps_max = 60;
wait(-1);
ph_fps_max_lock = 120;
level_load ("level1.wmb");
ph_setgravity (vector(0, 0, -700));
}
function coll() {
jump.x = 0; jump.y = 0; jump.z = 500;
if(key_space )
{
phent_addvelcentral(pointer,jump);
}
}
action playerj()
{
pointer = my;
my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY);
my.event = coll;
phent_settype (pointer, PH_RIGID, PH_SPHERE);
phent_setmass (pointer, 1, PH_SPHERE);
phent_setfriction (pointer, 500);
phent_setdamping (pointer, 50, 50);
phent_setelasticity (pointer, 0, 0);
}