Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void checkPoint(personnage *p)
- {
- int T[10] = { 10, 620, 880 };
- int T1[10] = { 100, 100, 100 };
- int i, j = T[0];
- int f = T1[0];
- for(i = 0; i<3; i++)
- {
- if((*p).position.x >= T[i])
- {
- j = T[i];
- f = T1[i];
- }
- }
- (*p).position.x = j;
- (*p).position.y = f;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement