I was told this isnt the most effecient way to create classes now
with lua, so what is a better way?
Is this the official way to do classes in corona now
http://blog.anscamobile.com/2011/09/a-better-approach-to-external-modules/
[lua]----main
local loadplayer = require( “player” )
local player = loadplayer.player:new(1);
player:loadimages(70,350);
playerIMG=player:getPlayer();
…
----player
module(…, package.seeall)
player = {}
player.__index = player
function player:new(i)
local o = {};
i = i;
setmetatable(o,self)
return o;
end
function player:loadimages(x,y)
…
…[/lua] [import]uid: 138547 topic_id: 25995 reply_id: 325995[/import]
[import]uid: 52491 topic_id: 25995 reply_id: 105619[/import]