24,6 → 24,8 |
|
rock_ini rock_new; |
|
extern volatile int shark_running; |
|
TASK shot(int i) |
{ |
int x, y; /* shot graphic position */ |
371,9 → 373,8 |
soft_task_def_usemath(ms); |
pid = task_create("Astro", astro, &ms, NULL); |
if (pid == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <astro>"); |
sys_end(); |
shark_running = 0; |
} else |
task_activate(pid); |
|
384,9 → 385,8 |
hard_task_def_usemath(mp); |
pid = task_create("Taken", look, &mp, NULL); |
if (pid == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Taken>"); |
sys_end(); |
shark_running = 0; |
} else |
task_activate(pid); |
|
400,9 → 400,8 |
hard_task_def_usemath(mp); |
pid_TL = task_create("TurnLeft", turn, &mp, NULL); |
if (pid_TL == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Turn L>"); |
sys_end(); |
shark_running = 0; |
} |
|
incr = - ASTRO_GRAD_INC; |
415,9 → 414,8 |
hard_task_def_usemath(mp); |
pid_TR = task_create("TurnRight", turn, &mp, NULL); |
if (pid_TR == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Turn R>"); |
sys_end(); |
shark_running = 0; |
} |
|
incr = ASTRO_VEL_INC; |
430,9 → 428,8 |
hard_task_def_usemath(mp); |
pid_SU = task_create("SpeedUP", speed, &mp, NULL); |
if (pid_SU == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Speed UP>"); |
sys_end(); |
shark_running = 0; |
} |
|
incr = - ASTRO_VEL_INC; |
445,9 → 442,8 |
hard_task_def_usemath(mp); |
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL); |
if (pid_SD == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Speed DOWN>"); |
sys_end(); |
shark_running = 0; |
} |
|
incr = 0; |
460,9 → 456,8 |
hard_task_def_usemath(mp); |
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL); |
if (pid_SZ == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Speed ZERO>"); |
sys_end(); |
shark_running = 0; |
} |
|
hard_task_default_model(mp); |
472,9 → 467,8 |
hard_task_def_usemath(mp); |
pid = task_create("MoveAstro", move, &mp, NULL); |
if (pid == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <MoveAstro>"); |
sys_end(); |
shark_running = 0; |
} else |
task_activate(pid); |
|
489,9 → 483,8 |
hard_task_def_usemath(mp); |
pid_FL = task_create("FlipAstro", turn, &mp, NULL); |
if (pid_FL == NIL) { |
FB26_close(FRAME_BUFFER_DEVICE); |
perror("Could not create task <Flip Astro>"); |
sys_end(); |
shark_running = 0; |
} |
#endif |
} |