Mercurial > hg > Game > Cerium
annotate Renderer/Test/ball_action.cc @ 561:5d9728befc2d draft
gplant (not yet worked...)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 19:31:09 +0900 |
parents | 4c5264373c51 |
children | 7a311860a76e |
rev | line source |
---|---|
539 | 1 #include <iostream> |
2 #include "SceneGraphRoot.h" | |
561
5d9728befc2d
gplant (not yet worked...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
3 |
539 | 4 using namespace std; |
5 | |
6 void | |
7 ball_move(SceneGraphPtr node, int w, int h) | |
8 { | |
9 node->xyz[0] += 4; | |
10 } | |
11 | |
12 void | |
13 ball_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
14 { | |
15 if (node->xyz[0] > 600) node->remove(); | |
16 } |