comparison dandy.h @ 7:c015109a6041

schedule add. 10% done.
author tkaito
date Tue, 29 Jun 2010 04:25:32 +0900
parents 661ec1e92042
children 7c60ef3fca5b
comparison
equal deleted inserted replaced
6:661ec1e92042 7:c015109a6041
23 const char *chara; 23 const char *chara;
24 int vital; //4 24 int vital; //4
25 int score; //4 25 int score; //4
26 void *parent; 26 void *parent;
27 void *root; 27 void *root;
28 int flag;
28 29
29 } *ObjPropertyPtr, ObjProperty; 30 } *ObjPropertyPtr, ObjProperty;
31
32 extern ObjPropertyPtr charactor;
30 33
31 static const int ENEMY_NUM = 1; 34 static const int ENEMY_NUM = 1;
32 35
33 static const float player_speed = 10.0f; 36 static const float player_speed = 10.0f;
34 static const float player_radius = 42.0f; 37 static const float player_radius = 42.0f;
44 47
45 extern void title_move(SceneGraphPtr node, void *sgroot_, int w, int h); 48 extern void title_move(SceneGraphPtr node, void *sgroot_, int w, int h);
46 extern void title_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree); 49 extern void title_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
47 extern void dandy_move(SceneGraphPtr node, void *sgroot_, int w, int h); 50 extern void dandy_move(SceneGraphPtr node, void *sgroot_, int w, int h);
48 extern void dandy_coll(SceneGraphPtr node, void *sgroot_, int w, int h,SceneGraphPtr tree); 51 extern void dandy_coll(SceneGraphPtr node, void *sgroot_, int w, int h,SceneGraphPtr tree);
49 extern void create_title(void *sgroot, int w, int h, ObjPropertyPtr charactor); 52 extern void create_back(void *sgroot, int w, int h);
50 extern void create_stage(void *sgroot, int w, int h, ObjPropertyPtr charactor); 53 extern void create_stage(void *sgroot, int w, int h);
54 extern void schedule(SceneGraphPtr node, void *sgroot_, int w, int h);
51 55
52 typedef struct enemy_state { 56 typedef struct enemy_state {
53 const char *charano; 57 const char *charano;
54 int score; 58 int score;
55 int vital; 59 int vital;
56 60
57 } state; 61 } state;
58 62
63
59 //const state enemystate[50]; 64 //const state enemystate[50];
60 65
61 #define ENEMY_STATUS_TABLE {\ 66 #define ENEMY_STATUS_TABLE {\
62 ENEMY_STATUS("title001" , 0 , 0), \ 67 ENEMY_STATUS("title001" , 0 , 0), \
63 ENEMY_STATUS("greencrab", 330, 98), \ 68 ENEMY_STATUS("greencrab", 330, 98), \
64 ENEMY_STATUS("plane", 470, 37), \ 69 ENEMY_STATUS("plane", 470, 37), \
65 ENEMY_STATUS("e_redbullet", 30, 16), \ 70 ENEMY_STATUS("e_redbullet", 30, 16), \
66 ENEMY_STATUS("bass1_organ", 25000, 10000), \ 71 ENEMY_STATUS("bass1_organ", 25000, 10000), \