Advertisement
PrincessFumi

Untitled

Jan 10th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #include <SFML/Window.hpp>
  2. #include <SFML/Graphics.hpp>
  3. #include<stdio.h>
  4. #include "wspolrzedne.h"
  5.  
  6. Wspolrzedne wspolrzedne(int nr_pola)
  7. {
  8. int tablica[][2]=
  9. {{10,230},{65,230}, {120,230}, {175,230}, {230,230},
  10. {230,175},{230,120}, {230,65}, {230,10},
  11. {285,10},
  12. {340,10},{340,65},{340,120},{340,175},{340,230},
  13. {395,230}, {450,230}, {505,230}, {560,230},
  14. {560,285},
  15. {560,340},{505,340},{450,340},{395,340},{340,340},
  16. {340,395},{340,450},{340,505}, {340,560},
  17. {285,560},
  18. {230,560},{230,505},{230,450},{230,395},{230,340},
  19. {175,340},{120,340},{65,340},{10,340},
  20. {10,285},
  21. {65,285},{120,285},{175,285},{230,285},//zolte
  22. {285,505},{285,450},{285,395},{285,340},//NIEBIESKIE
  23. {505,285}, {450,285}, {395,285}, {340,285},//TUTAJCZERWONE
  24. {285,65},{285,120},{285,175}, {285,230} //tutezielone
  25. };
  26.  
  27. Wspolrzedne wynik;
  28.  
  29. wynik.x = tablica[nr_pola][0];
  30. wynik.y = tablica[nr_pola][1];
  31.  
  32. return wynik;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement