My code is this:
local system = {};
local logoBmp;
local logoTexture;
function system.Start()
logoTexture = Texture.new("engine/images/logo.png", true);
logoBmp = Bitmap.new(logoTexture);
stage:addChild(logoBmp);
logoBmp:setAnchorPoint(0.5, 0.5);
print(Application);
print(Application:getScreenDensity());
print(Application:getLogicalHeight());
logoBmp:setPosition(Application:getContentWidth()/2, Application:getContentHeight()/2);
end
return system;
It fails at any line that has "Application:anyfunctiongoeshere()"
Why is that?
Comments
I don't know why the docs say A rather than a...
https://deluxepixel.com
Because application is an instance of the class Application that is already provided internally.
Straight from the docs :
Likes: SinisterSoft
https://deluxepixel.com
http://docs.giderosmobile.com/reference/gideros/Application#Application
And syntax is not a real function call, but just to show a syntax of possible call. will need to make it more clear