Search found 3 matches

by 2_bit_encryption
Thu Jan 28, 2016 9:41 pm
Forum: Support and Development
Topic: when overhead matters: return tables, or multiple values?
Replies: 3
Views: 3470

when overhead matters: return tables, or multiple values?

I can already tell this is an "it depends" question, but I have to ask it anyway. I've been thinking about my lower level design of my game a lot from the beginning. I chose to implement all my methods that return x,y coordinates as: function whatever:get_location() return {self.x, self.y}...
by 2_bit_encryption
Wed Jan 20, 2016 1:56 am
Forum: Support and Development
Topic: Undertsanding SpriteBatch, and tilesets vs individual png's
Replies: 3
Views: 3864

Re: Undertsanding SpriteBatch, and tilesets vs individual png's

Hi zorg, thanks for your answer. You seem to understand this very well, so I'm going to ask just some clarifying questions: I want to make sure I fully understand how the SpriteBatch works. Is this correct? Say I have a tileset image, TileSet.png, where all the tiles are the same dimensions (16x16, ...
by 2_bit_encryption
Tue Jan 19, 2016 9:50 pm
Forum: Support and Development
Topic: Undertsanding SpriteBatch, and tilesets vs individual png's
Replies: 3
Views: 3864

Undertsanding SpriteBatch, and tilesets vs individual png's

I'm at a fork in the road where I'm trying to decide if I want my game to use tilesets (i.e., one large .png of all my tiles), or individual .png's for each tile. Up to this point I've been using one individual .png for each tile, without issue. For example, if my whole screen should be filled with ...