Mercurial > hg > Game > Cerium
diff Renderer/Test/ball_bound.cc @ 1372:7afeb56ba212 draft
old API compatible
author | Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Jan 2012 22:24:51 +0900 |
parents | 90efd2aac2cb |
children | 555d2a31cf0c |
line wrap: on
line diff
--- a/Renderer/Test/ball_bound.cc Fri Jan 20 16:50:30 2012 +0900 +++ b/Renderer/Test/ball_bound.cc Sat Jan 21 22:24:51 2012 +0900 @@ -31,9 +31,9 @@ if (pad->circle.isHold()) { if (pad->left.isHold()) { - node->xyz[0] -= speed; + node->xyz[0] -= speed; if(node->xyz[0] < ball_radius) - node->xyz[0] = ball_radius; + node->xyz[0] = ball_radius; } else if (pad->right.isHold()) { node->xyz[0] += speed; if(node->xyz[0] > screen_w - ball_radius)