Mercurial > hg > Members > tkaito > t_dandy_old
view spe/chara_state602.cc @ 0:4be1ca60a49b default tip
first commit.
author | tkaito |
---|---|
date | Sat, 05 Feb 2011 02:13:58 +0900 |
parents | |
children |
line wrap: on
line source
#include "chara_state602.h" #include "tobject.h" SchedDefineTask(STATE602); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->dt2++; Putenemy(24, p->x + 14, p->y + 14, (rand() % 5 + 0.5) * (rand() % 2 == 1 ? -1 : 1), (rand() % 5 + 0.5) * (rand() % 2 == 1 ? -1 : 1), chara_state29); if (p->dt2 > 1024) { p->task = STATE600; p->dt2 = 0; } return 0; }