1
General / how to create a grid?
« on: November 22, 2011, 08:40:04 am »
in cmd you create a 2d array
in sfml how i create a grid and draw the needed part?
any tutorial?or link?
i thought to create an object for each part but i dont know how to make it,
i want to explain me the logic and give me a tutorial or link with an example if you can,i searched on google but didnt found anything
thanks for your time
Code: [Select]
for(int x=0;x<100;x++)
{
for(int y=0;y<100;y++)
{
grid[x][y];
}
}
in sfml how i create a grid and draw the needed part?
any tutorial?or link?
i thought to create an object for each part but i dont know how to make it,
i want to explain me the logic and give me a tutorial or link with an example if you can,i searched on google but didnt found anything
thanks for your time