From 85c1add590f8678afc9fe0fc7fcbccb464899080 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 15 Nov 2010 23:21:34 -0500 Subject: [PATCH] change grid to use ag.createQuad() with an offset --- anaglymtd.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anaglymtd.lua b/anaglymtd.lua index d01e1a9..1d4d641 100644 --- a/anaglymtd.lua +++ b/anaglymtd.lua @@ -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