24.10.2012, 16:36
wie ihr im bild sieht ist das häuschen nicht direkt am Rand. Deshalb meine Frage, was ich in meinem Code ändern muss.
Code:
Code:
Spoiler: (anzeigen)
Code:
map={
{z1 ,z2 ,z2 ,z2 ,z2 ,z2 ,z2 ,z2 ,z2 ,z2 ,z2 ,z3}, --Zeile 1
{z4 ,h1 ,h2 ,h2 ,h3 ,h4 ,h5 ,h5 ,h5 ,h5 ,h6 ,z6}, --Zeile 2
{z4 ,h7 ,h8 ,h9 ,h10,h11,h12,h12,h12,h12,h13,z6}, --Zeile 3
{z4 ,h14,h15,h16,h17,h18,h19,h19,h19,h19,h20,z6}, --Zeile 4
{z4 ,h21,h22,h23,h24,h25,h26,h27,h27,h28,h29,z6}, --Zeile 5
{z4 ,h30,h31,h32,h33,h34,h35,h36,h36,h37,z5, z6}, --Zeile 6
{z7 ,z8 ,z8 ,z8 ,z8 ,z8 ,z8 ,z8 ,z8 ,z8 ,z8 ,z9}, --Zeile 7
}
while true do
for c = 1,7 do
for d = 1,12 do
screen:blit(d*16,c*16,map[c][d],false)
end
end
screen.flip()
screen.waitVblankStart()
end