Saturday, September 1, 2012


Do away with collision double checking on android!


chart


 While working on a game, I realized I have been double checking for collisions against each other for some.  This way is hashed out where they won't double check.
int c=0;

for (int i = 0; i < enumbers; i++) {
for (int e = c; e < enumbers; e++) {blah,blah,}

c++;
}

No comments:

Post a Comment