33
|
1 #include "task_base.h"
|
|
2 #include "task_object.h"
|
18
|
3
|
33
|
4 SchedDefineTask1(STATE8, state8);
|
18
|
5
|
|
6 static int
|
33
|
7 state8(SchedTask *smanager, void *rbuf, void *wbuf)
|
18
|
8 {
|
|
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0);
|
33
|
10 int length = 2;
|
18
|
11
|
33
|
12 smanager->set_outputSize(1, sizeof(ObjContainer)+sizeof(ObjData)*(length-1));
|
|
13 smanager->setup_outputData();
|
|
14
|
|
15 CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0);
|
|
16 ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 1);
|
|
17 sprite->flag = false;
|
|
18
|
|
19 #if 0
|
18
|
20 if(p->y < 520)
|
|
21 {
|
|
22 tekino0 = p;
|
|
23 kyeenemyno = p;
|
|
24 p->y += p->vy;
|
|
25 count++;
|
|
26 DefSpriteEx(p->charano, 16*4, 32*4);
|
|
27 PutSpriteEx(p->charano, (p->x * 4), (p->y * 4), 0.2, 0.2, 1);
|
|
28 p->dt1 = 512;
|
|
29 p->s = 0.125;
|
|
30 p->task = STATE8;
|
|
31 return 0;
|
|
32 }
|
33
|
33 #endif
|
|
34
|
18
|
35 p->task = STATE9;
|
|
36 return 0;
|
|
37 }
|