Rendering isometric using sprite batch

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
travispaxton
Prole
Posts: 3
Joined: Wed Apr 10, 2013 2:01 pm

Rendering isometric using sprite batch

Post by travispaxton »

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 the isometric view using a sprite batch?

I've uploaded the .love file I'm currently working off, many thanks!
Attachments
src.love
(1018 Bytes) Downloaded 129 times
Last edited by travispaxton on Wed Apr 10, 2013 3:18 pm, edited 1 time in total.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: Rendering isometric using sprite batch

Post by markgo »

Setting up a spritebatch is pretty easy. You just need to make sure you add your quads/sprites to the spritebatch in the right order since draw order is important for isometric view. This link explains the draw order: http://stackoverflow.com/questions/8928 ... ame-worlds
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Rendering isometric using sprite batch

Post by micha »

travispaxton wrote:Does anyone have any ideas as to how to render the isometric view using a sprite batch?
There is nothing special about the isometric view that makes it difficult to use with a sprite batch. Where exactly are you having problems? Is it the general use of a sprite batch or is it the isometric view or is it the combination of both?

If you did the tutorial you wrote about and if you did this tutorial, it shouldn't be so hard to combine the two ideas.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests