lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,
 
  I find myself repeating the same type of code over and over.  Is there an idiom for this type of thing?
 
self.spBackGround = CreateSprite()
 
local    sp = self.spBackGround
sp:setSize( 10, 10 )
 
  I am looking for something along the lines of:
 
local    sp = self.spBackGround = CreateSprite()
sp:setSize( 10, 10 )
 
Leigh McRae