Mercurial > hg > Members > koba > t_dandy
comparison spe/chara_state500.cc @ 60:cfd42ee2ad28
change makefile, spe/task. adjust scale api. worked on ps3-ppe.
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 06 Feb 2011 17:16:43 +0900 |
parents | f4140672ef9f |
children |
comparison
equal
deleted
inserted
replaced
59:cd05eee90279 | 60:cfd42ee2ad28 |
---|---|
27 p->dt1++; | 27 p->dt1++; |
28 count++; | 28 count++; |
29 DefSpriteEx(100, 16, 16, &sprite->data[0]); | 29 DefSpriteEx(100, 16, 16, &sprite->data[0]); |
30 PutSpriteEx(100, p->x + 16, p->y + 16, 2, 2, p->dt1, &sprite->data[1]); | 30 PutSpriteEx(100, p->x + 16, p->y + 16, 2, 2, p->dt1, &sprite->data[1]); |
31 | 31 |
32 if (p->dt1 % (5 + p->dt2 / 8) == 1) { | 32 int num = 5 + p->dt2 / 8; |
33 sprite->length = 3; | 33 if (num != 0) { |
34 | 34 if (p->dt1 % num == 1) { |
35 if (rand % 2 == 1) | 35 sprite->length = 3; |
36 Putenemy(24, p->x, p->y, | 36 |
37 (rand % 5 + 0.5) * (rand % 2 == | 37 if (rand % 2 == 1) |
38 1 ? -1 : 1), | 38 Putenemy(24, p->x, p->y, |
39 (rand % 5 + 0.5) * (rand % 2 == | 39 (rand % 5 + 0.5) * (rand % 2 == |
40 1 ? -1 : 1), STATE501, &sprite->data[2]); | 40 1 ? -1 : 1), |
41 else | 41 (rand % 5 + 0.5) * (rand % 2 == |
42 Putenemy(rand % 2 + 1, p->x, | 42 1 ? -1 : 1), STATE501, &sprite->data[2]); |
43 p->y, | 43 else |
44 (int) Mycos(p->dt1 / 4) * 4 / | 44 Putenemy(rand % 2 + 1, p->x, |
45 SANKAKU, | 45 p->y, |
46 (int) -Mysin(p->dt1 / 4) * 4 / | 46 (int) Mycos(p->dt1 / 4) * 4 / |
47 SANKAKU, STATE501, &sprite->data[2]); | 47 SANKAKU, |
48 } | 48 (int) -Mysin(p->dt1 / 4) * 4 / |
49 if (p->dt1 == 50) { | 49 SANKAKU, STATE501, &sprite->data[2]); |
50 /*Putenemy(44,0,0,1,1,411); */ | 50 } |
51 if (p->dt1 == 50) { | |
52 /*Putenemy(44,0,0,1,1,411); */ | |
53 } | |
51 } | 54 } |
52 CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); | 55 CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); |
53 int *w_count = (int*)smanager->get_output(wbuf, 1); | 56 int *w_count = (int*)smanager->get_output(wbuf, 1); |
54 | 57 |
55 *q = *p; | 58 *q = *p; |
56 *w_count = count; | 59 *w_count = count; |
57 return 0; | 60 return 0; |
58 } | 61 } |