annotate dandy.h @ 8:b87dcc11a6d0

fix
author tkaito
date Mon, 14 Jun 2010 07:48:42 +0900
parents b0248931e40f
children 93d9db48775f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
1 #include <math.h>
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
2 #include <stdlib.h>
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
3 #include "SceneGraph.h"
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
4 #include "Application.h"
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
5 #include "MainLoop.h"
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
6
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
7 class dandy : public Application {
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
8 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
9 };
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
10
6
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
11 static const float player_speed = 10.0f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
12 static const float player_radius = 42.0f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
13
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
14 static const float boss_radius_x = 65.4f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
15 static const float boss_radius_y = 130.8f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
16 static const float first_boss1_speed = 10.0;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
17 static const float first_boss1_depth = 500.0;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
18 static const float return_boss1_depth_speed = 10.0;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
19
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
20 static const float shot_speed = 30.0f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
21 static const float shot_radius = 42.4f;
581fa1888e2e add bullet
tkaito
parents: 3
diff changeset
22
2
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
23 extern void title_collision(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
69b4108bf4e8 refact few
tkaito
parents:
diff changeset
24 extern void gameover_scene(void *sgroot_, int w, int h);
8
tkaito
parents: 7
diff changeset
25 extern void create_stage(void *sgroot_, int w, int h);