Mercurial > hg > Members > koba > t_dandy
comparison spe/chara_state12.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 |
---|---|
20 length = 2; | 20 length = 2; |
21 smanager->set_outputSize(6, sizeof(ObjContainer)+sizeof(ObjData)*(length-1)); | 21 smanager->set_outputSize(6, sizeof(ObjContainer)+sizeof(ObjData)*(length-1)); |
22 smanager->setup_outputData(); | 22 smanager->setup_outputData(); |
23 | 23 |
24 CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); | 24 CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); |
25 int *w_count = (int*)smanager->get_output(wbuf, 3); | 25 int *w_count = (int*)smanager->get_output(wbuf, 1); |
26 int *w_rinky = (int*)smanager->get_output(wbuf, 4); | 26 int *w_rinky = (int*)smanager->get_output(wbuf, 4); |
27 ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 6); | 27 ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 6); |
28 sprite->flag = true; | 28 sprite->flag = true; |
29 sprite->length = length; | 29 sprite->length = length; |
30 | 30 |
31 if (p->y > 240+32) { | 31 if (p->y > 240+32) { |
32 p->task = DELETE_CHARA; | 32 p->state_task = DELETE_CHARA; |
33 } | 33 } |
34 p->y += 3; | 34 p->y += 3; |
35 rinky += 3; | 35 rinky += 3; |
36 count++; | 36 count++; |
37 | 37 |
38 DefSpriteEx(54, 16, 32, &sprite->data[index_count]); | 38 DefSpriteEx(54, 16, 32, &sprite->data[index_count]); |
39 index_count++; | 39 index_count++; |
40 PutSpriteEx(54, p->x, p->y, 2, 2, 1, &sprite->data[index_count]); | 40 PutSpriteEx(54, p->x, p->y, 2, 2, 1, &sprite->data[index_count]); |
41 p->task = STATE12; | 41 p->state_task = STATE12; |
42 | 42 |
43 *w_rinky = rinky; | 43 *w_rinky = rinky; |
44 *w_count = count; | 44 *w_count = count; |
45 *q = *p; | 45 *q = *p; |
46 return 0; | 46 return 0; |