Search found 3 matches

by travispaxton
Fri Apr 12, 2013 5:07 am
Forum: General
Topic: Isometric grid coordinate problem
Replies: 1
Views: 1137

Re: Isometric grid coordinate problem

I think I may have found a resolution. Since the draw happens from the top left of the image, I think I need to offset the draw as such:

Code: Select all

	for x = -20, 20 do
		for y = -20, 20 do
			a, b = get_coord(x, y)
			gr.draw(grass, a - 16, b - 8)
		end
	end
by travispaxton
Fri Apr 12, 2013 4:30 am
Forum: General
Topic: Isometric grid coordinate problem
Replies: 1
Views: 1137

Isometric grid coordinate problem

I'm trying to debug a grid coordinate issue I'm having. Given the attached .love file, the 21x21 grid should be perfectly centered in the window with cell 0,0 in the cross hair. Cell 0,0 is in the cross hair, which is correct, but the entire grid seems to be shifted 1 down and 1 to the right. I can'...
by travispaxton
Wed Apr 10, 2013 2:15 pm
Forum: Support and Development
Topic: Rendering isometric using sprite batch
Replies: 2
Views: 1859

Rendering isometric using sprite batch

So I was going over the tutorial located at http://www.love2d.org/wiki/Tutorial:Isometric_Graphics and started working on my own isometric view. Unfortunately, the tutorial appears to be drawing each cell individually, whereas I'm using a sprite batch. Does anyone have any ideas as to how to render ...