Mercurial > hg > Game > Cerium
annotate Renderer/Application/ball_action.cc @ 539:3bc98f6d31ff draft
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | |
children |
rev | line source |
---|---|
539 | 1 #include <iostream> |
2 #include "SceneGraphRoot.h" | |
3 #include "SGList.h" | |
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 } |