view spe/chara_state402.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_state402.h"
#include "tobject.h"

SchedDefineTask(STATE402);

static int
run(SchedTask *smanager, void *rbuf, void *wbuf)
{
    CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0);

    p->vx--;
    p->x += p->vx / 8;
    if (p->x < (jiki.x + 32))
    {
	p->vy--;
    }
    p->y += p->vy / 8;
    if (p->dt1 % 50 == 37)
    {
	Puttama(1, p->x + 8, p->y + 24);
    }
    p->dt1++;
    return 0;
}