0 Members and 2 Guests are viewing this topic.
tile = {0,84,6,94,21,92,15,82}tilechange = {0,84,6,94,21,92,15,82}function on.paint(gc) gc:setColorRGB(170,170,170) for i=1,10 do for j=1,15 do for k=1,7,2 do tilechange[k]=tile[k]+i*7+j*16-18 tilechange[k+1]=tile[k+1]+i*11-j*2+5 end gc:fillPolygon(tilechange) tilechange = {0,84,6,94,21,92,15,82} end endend
i'll change it directly, hope it got some effect, but it think that speed improvement isn't needed, as it reacts to keypresses nearly directly...Does anyone have some ideas for a highscore? i don't really know what i should count as highscore, as when i take the lowest nr of movements, you have a highscore when finishing the first level. It has to be something that's over all the levels. Now i use totalmoves/levels played, but it's kinda strange i think.update:16 perfectly working levels (not those with the splitting parts), i think i'll keep it with that. Maybe i'll make a leveleditor in later updates, but we'll see..now working on a graphical level selector and menu