# How do you divide the screen into tiles? [closed]

I have been reading alot on tile-based game programming but i could not find a satisfying answer to this question.

I want to know how i can divide the screen into tiles of a size like 32?

I am doing it in JAVA.

## closed as too broad by Anko, MichaelHouse♦Feb 4 '14 at 15:15

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Do you know how to draw lines? Where are you stuck? – wolfdawn Feb 4 '14 at 9:00
• What did you try? – Timothy Groote Feb 4 '14 at 10:42

for(int i=0; i<rows; i++){