what he ment was
"what if the shape of the map is rectangular"
note hes banned .. im his friend(you can hceck ip if you want =)
Printable View
what he ment was
"what if the shape of the map is rectangular"
note hes banned .. im his friend(you can hceck ip if you want =)
Yea I know he is banned ;).
Anyway if its rectangular then it will still work, well the code I gave will at least not looked at the other code that got posted.
im posting for nareth know;
he says that his drawing function is messed
and he send me this picture thru msn:Code:Let xTemp = Map.Width * TileHalfWidth
For X = 0 To Map.Width
Let xDest = xTemp
Let yDest = yTemp
For Y = 0 To Map.Height
Let rSrc.Left = Map.TileX(X, Y) * TileWidth
Let rSrc.Top = Map.TileX(X, Y) * TileHeight
Let rSrc.Right = rSrc.Left + TileWidth
Let rSrc.Bottom = rSrc.Top + TileHeight
Call BufferSurface.BltFast(xDest, yDest, GroundTiles, rSrc, DDBLTFAST_DONOTWAIT Or DDBLTFAST_SRCCOLORKEY)
Let xDest = xDest + TileHalfHeight
Let yDest = yDest + TileHalfWidth
Next
Let xTemp = xTemp - TileHalfHeight
Let yTemp = yTemp + TileHalfWidth
Next
ahahahahaha i looked at the code. and im not good in directx but
Let xTemp = xTemp - TileHalfHeight
Let yTemp = yTemp + TileHalfWidth
even i noticed his mistake
he was so embarresed