OpenGL Pong Help
I'm currently attempting to make a 2d pong game with OpenGL, this is probably a logic issue, I've been working for about an hour now and I can't get a good result..
I'm trying to make it do this logically
glTranslatef(0.0f, y2, -8.5f);
if y2 is greater than a certain amount (the point where the quad starts moving off the screen) make it so you cant move up on Y anymore
and vice versa
if y2 is less than a certain amount......
I can figure out the certain amount on my own, i'm curious as to what to do when y2 actually gets there, can I disable the key that increases it? can I subtract whatever is above the certain amount, what to do what to do......
I fixed it, just made it so it would -.01 (the movement ratio) every time you went over the certain number, so it looks like it stops you dead in your tracks, perfect :D
...No idea what you're saying :)