In what sence do a backgrond grid?
If you simply mean a guide grind
Loop the number of Horizontal gides you need, for example for YNum= 0 to NumberNeeded -1
Draw the horizontal from 0,YNum*GridSquareSize to ScreenSize-1,YNum*GridSquareSize
Same for Verticle
But do this AFTER the other drawing. It is in fact a Foreground grid
I feel so mean now for not pasteing real code ;o
If you simply mean a guide grind
Loop the number of Horizontal gides you need, for example for YNum= 0 to NumberNeeded -1
Draw the horizontal from 0,YNum*GridSquareSize to ScreenSize-1,YNum*GridSquareSize
Same for Verticle
But do this AFTER the other drawing. It is in fact a Foreground grid
Edit. Or just cut and paste the code above if you mean Tiles
I feel so mean now for not pasteing real code ;o