Hello,
I would like to know, if there is any way, how I can access config.lua file. More specificly, I would like to know how application.content.imageSuffix parameter is defined in current context.
I am trying to use it for implementing some sprite loader, which loads animations from sprite sheets. There will be available multiple sprite sheets, one for each resolution. I would like to work it just exactly like dynamic image resolution method display.newImageRect uses it - I am trying to find out best sprite sheet resolution automatically.
I have got working sprite loader already, but I have to tell it explicitly, how imageSuffix is defined. I want to avoid this redundancy.
More general, I would like to read also other parameters from config.lua, like fps. Is it possible?
Thank you. [import]uid: 104645 topic_id: 18451 reply_id: 318451[/import]