Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SFML/Window.hpp>
- #include <SFML/Graphics.hpp>
- #include<stdio.h>
- #include "wspolrzedne.h"
- Wspolrzedne wspolrzedne(int nr_pola)
- {
- int tablica[][2]=
- {{10,230},{65,230}, {120,230}, {175,230}, {230,230},
- {230,175},{230,120}, {230,65}, {230,10},
- {285,10},
- {340,10},{340,65},{340,120},{340,175},{340,230},
- {395,230}, {450,230}, {505,230}, {560,230},
- {560,285},
- {560,340},{505,340},{450,340},{395,340},{340,340},
- {340,395},{340,450},{340,505}, {340,560},
- {285,560},
- {230,560},{230,505},{230,450},{230,395},{230,340},
- {175,340},{120,340},{65,340},{10,340},
- {10,285},
- {65,285},{120,285},{175,285},{230,285},//zolte
- {285,505},{285,450},{285,395},{285,340},//NIEBIESKIE
- {505,285}, {450,285}, {395,285}, {340,285},//TUTAJCZERWONE
- {285,65},{285,120},{285,175}, {285,230} //tutezielone
- };
- Wspolrzedne wynik;
- wynik.x = tablica[nr_pola][0];
- wynik.y = tablica[nr_pola][1];
- return wynik;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement