Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created June 30, 2011 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qpfiffer/1055794 to your computer and use it in GitHub Desktop.
Save qpfiffer/1055794 to your computer and use it in GitHub Desktop.
Shitty collision detection
if (floorPads1.floorPadsPlaces[localPlayerPos[2]][localPlayerPos[0]] == 1) {
return 1;
}
else // Redundant but FUCK YOU
return 0;
//glEnable(GL_LIGHTING); //GO TO HELL
newRoomOrigin[i] = newRoomOrigin[i] + newRoomDim[i]; // Just look at it you dumbass
int collisionCheck(struct object obj1, struct object obj2) {
//Return 0 on no collision, 1 on a collision
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment