   SDL and tiles
  I need help using tiles on sdl.if you know any tutorial please tell me.   
  Putting your thread title into google, and adding the word "tutorial" returns lots of results. Have you tried any of them?;  I tried some tutorials and they worked but i didn't really understand what they did.   ;  Ah, yes. That is often the problem with tutorials. Maybe a brief overview of what you're trying to achieve will help.You wish to fill an area with a repeated smaller tile. Let us, for starters, assume we have but one type of tile and that one shall be repeated in a straight-forward grid fashion across the entire screen. Here's the general process for that:1. Load in or generate the tile data. Eg: load a surface from an image file2. To draw the tiles proceed like so:2.1. Loop through each position horizontally that the tile must fill, each time doing:2.1.1: Loop through each position vertically that the tile must fill, each time doing:2.1.1.1: Draw the tile at (horizontal position, vertical position) generated from the two loops.Notice that we have two loops, one inside the other. This is a common solution to the problem of visiting each tile in a grid. Just as a loop from 1 to n visits each member of a linear array, looping from 1 to m for each loop in 1 to n lets us visit each tile in an n by m grid. Since we want to draw all the tiles, we visit each tile with our two nested loops and draw a single tile on each iteration. (Quick quiz: what would three nested loops let us loop through?)Does that help with the overall understanding of the process? If so, try reading the tutorials again, or better yet try to write it yourself. If you get stuck, try asking a more specific question.   ;  Maybe if you tell us about your experience level we can guide you? What language are you using? What is the most complicated program you have ever made?   ;  Im using c++ and the most complicated program i have made is a basic game that you only need to pick up coins.   ;  I'm offering some very affordable one-on-one game programming instruction lessons.If you're interested, drop me a PM.   