fx += sin(direction);
fy += cos(direction);
- if (fx < 0){ printf("AAA\n"); fx += screenWidth; }
- if (fx >= screenWidth){ printf("BBB\n"); fx -= screenWidth; }
- if (fy < 0){ printf("CCC\n"); fy += screenHeight; }
- if (fy >= screenHeight){ printf("DDD\n"); fy -= screenHeight; }
+ if (fx < 0) fx += screenWidth;
+ if (fx >= screenWidth) fx -= screenWidth;
+ if (fy < 0) fy += screenHeight;
+ if (fy >= screenHeight) fy -= screenHeight;
x[0] = (int)fx;
y[0] = (int)fy;