# HG changeset patch # User tkaito # Date 1276503603 -32400 # Node ID 93d9db48775fef6d988c93f2ec15882922e9cde4 # Parent c7c497f1c585444107111df22ce131ceb96e3aea Property add not move. 30% diff -r c7c497f1c585 -r 93d9db48775f dandy.h --- a/dandy.h Mon Jun 14 16:53:33 2010 +0900 +++ b/dandy.h Mon Jun 14 17:20:03 2010 +0900 @@ -8,6 +8,22 @@ MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); }; +typedef void (*move_func)(SceneGraphPtr node, void *sgroot_, int w, int h); +typedef void (*coll_func)(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree); + +typedef struct { + double x, y; + double vx, vy; + double angle[3]; + int vit; + int score; + move_func move; + coll_func func; + SceneGraphPtr parent; + SceneGraphPtr root; + +} *ObjPropertyPtr, ObjProperty; + static const float player_speed = 10.0f; static const float player_radius = 42.0f;