Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local maxX = 1280
- local maxY = 768
- function drawMap()
- local id = 1
- for x = 0, maxX, 32 do
- for y = 0, maxY, 32 do
- objects.ground[id] = {}
- objects.ground[id].body = love.physics.newBody(world, x, y)
- objects.ground[id].shape = love.physics.newRectangleShape(0, 0, 32, 32)
- objects.ground[id].fixture = love.physics.newFixture(objects.ground[id].body, objects.ground[id].shape)
- if(map[x/32 +1] and map[x/32 +1][y/32 +1 ])then
- love.graphics.draw(love.graphics.newImage("/imagens/tiles/".. map[x/32 +1][y/32 +1 ]..".png"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement