Mercurial > hg > Members > koba > t_dandy
view spe/chara_state41.cc @ 27:871f7d9a2f35
running.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 27 Dec 2010 17:21:24 +0900 |
parents | c330ded6d728 |
children | f4140672ef9f |
line wrap: on
line source
#include "chara_state41.h" #include "tobject.h" SchedDefineTask(STATE41); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); if (enemy_part2->f == FALSE) { Bom(p->x, p->y); p->f = FALSE; p->state = delete_chara; p->collision = noaction; return 0; } p->x = kyeenemyno->x - 20 - 7; p->y = kyeenemyno->y + 28 + 15; if ((rinkf1 == 8) && (p->dt1 % 3 == 1)) { if ((p->dt2 < 16)) { p->dt2++; DefSprite(77, "boss2_leftarmbattery", p->dt2, 16, 480, boss); /*左腕アップアーム砲 */ } else { rinkf1 = 9; return 0; } } if (rinkf1 == 9) { if (p->dt1 % 15 == 1) { Puttama(9 + rand() % 2, p->x, p->y); } } if (rinkf1 == 10) { if (p->dt2 != 0) { p->dt2--; DefSprite(77, "boss2_leftarmbattery", p->dt2, 16, 480, boss); } else { p->f = FALSE; p->state = delete_chara; p->collision = noaction; return 0; } } p->dt1++; return 0; }