Search found 2 matches

by laxoxal
Fri Dec 22, 2017 5:18 am
Forum: Support and Development
Topic: Elegant SpriteBatch Usage
Replies: 2
Views: 2267

Re: Elegant SpriteBatch Usage

Thanks for the response!

I use metatables as well. Sorry I'm just being dumb. For some reason I thought you couldn't do that outside of a method you call in the main love methods or it wouldn't get done. But I guess that gets done when you require the file.
by laxoxal
Tue Dec 19, 2017 9:02 am
Forum: Support and Development
Topic: Elegant SpriteBatch Usage
Replies: 2
Views: 2267

Elegant SpriteBatch Usage

Hello, I'm trying to make a 2D platformer that uses one spritesheet and spritebatch for all the foreground objects. However, I don't know how best to structure my code around Spritebatches. I have a Lua table that contains tables of quads like this: local spritedata = { player = { {0,0,8,16}, {8,0,8...