Mercurial > hg > Members > tkaito > dandy
changeset 10:93d9db48775f default tip
Property add not move. 30%
author | tkaito |
---|---|
date | Mon, 14 Jun 2010 17:20:03 +0900 |
parents | c7c497f1c585 |
children | |
files | dandy.h |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;