Mercurial > hg > Members > koba > t_dandy
annotate spe/chara_state20.cc @ 70:cee55c8365e9 default tip
fix
author | Kazuma |
---|---|
date | Thu, 19 May 2016 18:52:26 +0900 |
parents | c330ded6d728 |
children | f4140672ef9f |
rev | line source |
---|---|
18 | 1 #include "chara_state20.h" |
2 #include "tobject.h" | |
3 | |
4 SchedDefineTask(STATE20); | |
5 | |
6 static int | |
7 run(SchedTask *smanager, void *rbuf, void *wbuf) | |
8 { | |
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); | |
10 | |
11 p->x += p->vx; | |
12 p->y += p->vy; | |
13 p->vy -= 0.5; | |
14 p->vy += 0.4; | |
15 return 0; | |
16 } |