Mercurial > hg > Members > koba > t_dandy
annotate spe/chara_state400.cc @ 60:cfd42ee2ad28
change makefile, spe/task. adjust scale api. worked on ps3-ppe.
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 06 Feb 2011 17:16:43 +0900 |
parents | f4140672ef9f |
children |
rev | line source |
---|---|
49 | 1 #include "task_base.h" |
2 #include "task_object.h" | |
18 | 3 |
49 | 4 SchedDefineTask1(State400, state400); |
18 | 5 |
6 static int | |
49 | 7 state400(SchedTask *smanager, void *rbuf, void *wbuf) |
18 | 8 { |
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); | |
10 | |
11 p->vy++; | |
12 p->y += p->vy / 4; | |
60
cfd42ee2ad28
change makefile, spe/task. adjust scale api. worked on ps3-ppe.
yutaka@localhost.localdomain
parents:
49
diff
changeset
|
13 p->state_task = STATE400; |
49 | 14 |
15 smanager->swap(); | |
18 | 16 return 0; |
17 } |