change grid to use ag.createQuad() with an offset

This commit is contained in:
Josh Holtrop 2010-11-15 23:21:34 -05:00
parent d1fc5f3478
commit 85c1add590

View File

@ -6,9 +6,10 @@ function init_event()
ground:setColor(0, 1, 0)
grid_texture = ag.loadTexture("grid.png")
grid = ag.createBox(16, 16, 1, {static = true})
grid = ag.createQuad(0, 0, 0, 8, 0, 0, 0, 8, 0)
grid:setTexture(grid_texture)
grid:setPosition(0, 0, 1)
grid:setOffset(1)
ag.setCamera(2, -12, 10)
end