Advertisement
ProToTN

Untitled

May 8th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. void checkPoint(personnage *p)
  2. {
  3.     int T[10] = { 10, 620, 880 };
  4.     int T1[10] = { 100, 100, 100 };
  5.     int i, j = T[0];
  6.     int f = T1[0];
  7.     for(i = 0; i<3; i++)
  8.     {
  9.         if((*p).position.x >= T[i])
  10.         {
  11.             j = T[i];
  12.             f = T1[i];
  13.         }
  14.     }
  15.     (*p).position.x = j;
  16.     (*p).position.y = f;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement