Like.
Code: Select all
function draw_map()
for y=1, map_display_h do
for x=1, map_display_w do
love.graphics.draw(
tile[map[y+map_y][x+map_x]],
(x*tile_w)+map_offset_x,
(y*tile_h)+map_offset_y )
end
end
end
For example i Don't understand in the line..
Code: Select all
for y=1, map_display_h do
also i really dont understand the line
Code: Select all
tile[map[y+map_y][x+map_x]],
All Help Is Apreciated!:D
P.S. how would i use more then 1 kind of tile? for example, Lets say i wanted grass, and stone?