I am creating a ball game where I display the same ball graphic multiple times.
I had coded it as follows:
local ball1= display.newImage("redpoolball.png")
local ball2= display.newImage("redpoolball.png")
local ball3= display.newImage("redpoolball.png")
local ball4= display.newImage("redpoolball.png")
local allBallsGroup = display.newGroup()
allBallsGroup:insert( ball1 )
allBallsGroup:insert( ball2 )
allBallsGroup:insert( ball3 )
allBallsGroup:insert( ball4 )
I was just wondering if I need to load the image in 4 times or is there a more efficient solution loading it only once? [import]uid: 7863 topic_id: 2737 reply_id: 302737[/import]