Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard
How did you get in ?WildFire wrote:Well guys if i make a cube in opengl how can i make it so that you cant go outside the cube?
I don't know why I laughed at that.t i l e x wrote:How did you get in ?WildFire wrote:Well guys if i make a cube in opengl how can i make it so that you cant go outside the cube?
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Invictus wrote:if(xpos < cube.front)
xpos++
if(xpos > cube.front)
xpos--;if(xpos >= max.x)
xpos=max.x;tomcant wrote:Invictus wrote:if(xpos < cube.front)
xpos++
? I believe you ment:
- Code: Select all
if(xpos > cube.front)
xpos--;
Also, I'v always achieved the same thing with:
- Code: Select all
if(xpos >= max.x)
xpos=max.x;
Users browsing this forum: No registered users and 2 guests