Mercurial > hg > Members > koba > t_dandy
view spe/chara_state31.cc @ 70:cee55c8365e9 default tip
fix
author | Kazuma |
---|---|
date | Thu, 19 May 2016 18:52:26 +0900 |
parents | c330ded6d728 |
children | f4140672ef9f |
line wrap: on
line source
#include "chara_state31.h" #include "tobject.h" SchedDefineTask(STATE31); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); if((enemy_part3->f == FALSE) || (kyeenemyno->f == FALSE)) { Bom(p->x, p->y); p->f = FALSE; p->state = delete_chara; p->collision = noaction; return 0; } if(rinkf1 == 0) { p->x = kyeenemyno->x + 40; p->y = kyeenemyno->y + 28; p->dt2 = 0; } if(rinkf1 == 5) { p->x = kyeenemyno->x + 52; p->y = kyeenemyno->y; count++; PutSprite(count, p->x - 4, p->y - 20, 80 + p->dt2 % 4); p->dt2++; } if(rinkf1 == 6) { if(p->y < 240 - 40) { p->y += 6; } else { return 0; } count++; PutSprite(count, p->x - 4, p->y - 20, 90 + p->dt2 % 4); p->dt2++; } if(rinkf1 == 7) { Putenemy(22, p->x + 14, p->y + 14, 0, 0, chara_state40); return 0; } if(rinkf1 == 11) { if(p->y + 20 != p->y) { p->y--; } else { return 0; } count++; PutSprite(count, p->x + 8, p->y + 44, 58 + p->dt2 % 4); p->dt2++; } return 0; }