Hey, I have problem while loading (or saving, I don't really know) my map, it does things like these : http://puu.sh/q0Acg/0baead1181.jpg here's the code : -- this is for import map to string function map2string(maptable,typeser) local sz = '' for y = 0, map.height do local row = {} for x = 0, map.w...
Here's the code : function shadwo_update() for x = begx, endx do --math.floor((player.x)/32)+player.focus for y = begy, endy do if (x > begx and y > begy) and (x < endx and y < endy) then if map[x][y] == 1 then dark.r[x][y] = 255 dark.g[x][y] = 255 dark.b[x][y] = 255 dark.a[x][y] = 255 end if map[x]...
Hey ! I am learning Love2d GLSL shader, and if I am here it's because I have a problem :/ I want to do shadow on my tiles like this : http://gamingbolt.com/wp-content/uploads/2014/04/starbound.jpg but when I test with shader it do that : http://puu.sh/nMEld/47f540338f.jpg I send variable to my shade...