Mercurial > hg > Game > Cerium
diff Renderer/Application/back_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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Application/back_action.cc Mon Oct 12 09:39:35 2009 +0900 @@ -0,0 +1,24 @@ +#include <iostream> +#include "SceneGraphRoot.h" +#include "SGList.h" +#include "ball_action.h" +using namespace std; + +void +back_move(SceneGraphPtr node, int w, int h) +{ + Pad *pad = sgroot->getController(); + + if (pad->triangle.isPush()) { + SceneGraphPtr ball = sgroot->createSceneGraph(Ball); + ball->xyz[0] = -100; + ball->set_move_collision(ball_move, ball_coll); + node->addChild(ball); + } +} + +void +back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) +{ + +}