comparison dandy.h @ 10:93d9db48775f default tip

Property add not move. 30%
author tkaito
date Mon, 14 Jun 2010 17:20:03 +0900
parents b87dcc11a6d0
children
comparison
equal deleted inserted replaced
9:c7c497f1c585 10:93d9db48775f
5 #include "MainLoop.h" 5 #include "MainLoop.h"
6 6
7 class dandy : public Application { 7 class dandy : public Application {
8 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); 8 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
9 }; 9 };
10
11 typedef void (*move_func)(SceneGraphPtr node, void *sgroot_, int w, int h);
12 typedef void (*coll_func)(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
13
14 typedef struct {
15 double x, y;
16 double vx, vy;
17 double angle[3];
18 int vit;
19 int score;
20 move_func move;
21 coll_func func;
22 SceneGraphPtr parent;
23 SceneGraphPtr root;
24
25 } *ObjPropertyPtr, ObjProperty;
10 26
11 static const float player_speed = 10.0f; 27 static const float player_speed = 10.0f;
12 static const float player_radius = 42.0f; 28 static const float player_radius = 42.0f;
13 29
14 static const float boss_radius_x = 65.4f; 30 static const float boss_radius_x = 65.4f;