I'm working on a game. I create about 40 game sprites and need to keep track of action states and other information for each. Seems I have two options to work with all of this.
1) Assign variables to each of the sprite objects created. Something like
local invader = sprite.newSprite( invader_spritesheet )
invader.is_hit = false
invader.row = row
invader.col = col
etc.
Or method 2) Create an array or table to hold a reference to the display object and hold properties describing the game state of that display object.
At the moment I'm using the second method using display object as the property for each table element. Which seems to work fine.