Mercurial > hg > Members > koba > t_dandy
comparison ppe/chara_state22.cc @ 66:f27a6af6514c
SchedRegister, game_task.h etc...
author | tkaito |
---|---|
date | Thu, 17 Feb 2011 10:56:56 +0900 |
parents | b97628fca317 |
children |
comparison
equal
deleted
inserted
replaced
65:b97628fca317 | 66:f27a6af6514c |
---|---|
18 { | 18 { |
19 p->x = -35; | 19 p->x = -35; |
20 p->y = rand2 % (120 - 35); | 20 p->y = rand2 % (120 - 35); |
21 p->vx = (rand3 % 4 + 1); | 21 p->vx = (rand3 % 4 + 1); |
22 p->vy = rand4 % 3 + 1; | 22 p->vy = rand4 % 3 + 1; |
23 p->state_task = STATE23; | 23 p->state_task = State23; |
24 } | 24 } |
25 if((sf == 2)) | 25 if((sf == 2)) |
26 { | 26 { |
27 p->x = rand2 % 290; | 27 p->x = rand2 % 290; |
28 p->y = -30; | 28 p->y = -30; |
29 p->vx = rand3 % 3 - 1; | 29 p->vx = rand3 % 3 - 1; |
30 p->vy = (rand4 % 4 + 1); | 30 p->vy = (rand4 % 4 + 1); |
31 p->state_task = STATE23; | 31 p->state_task = State23; |
32 } | 32 } |
33 if(sf == 3) | 33 if(sf == 3) |
34 { | 34 { |
35 p->x = 320; | 35 p->x = 320; |
36 p->y = rand2 % (120 - 35); | 36 p->y = rand2 % (120 - 35); |
37 p->vx = (rand3 % 4 + 1) * -1; | 37 p->vx = (rand3 % 4 + 1) * -1; |
38 p->vy = rand4 % 3 -1; | 38 p->vy = rand4 % 3 -1; |
39 p->state_task = STATE23; | 39 p->state_task = State23; |
40 } | 40 } |
41 | 41 |
42 smanager->swap(); | 42 smanager->swap(); |
43 return 0; | 43 return 0; |
44 } | 44 } |