I am trying to add on some work I created in Kwik to my game, however, I just discovered that Kwik generates all its graphics to the following config:
[lua] application =
{
content =
{
–zoom
width = 640,
height = 960,
fps = 60,
scale = “zoomEven”,
imageSuffix =
{
["@2"] = 2,
}
}
} [/lua]
…and I’m using:
[lua]application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 30,
imageSuffix =
{
["@x15"] = 1.5,
["@x2"] = 2,
},
},
}[/lua]
I thought it might be a simple case of putting a variable in the main.lua file like 'setScale = false" and a “setScale = true” in my kwik page and create an if/else statement to switch between the two but the config.lua file doesn’t seem to see any of this. So I’m a bit stuck.
Does anyone know how to do an if / else statement in the config.lua file based on a variable in another module? Or is there a way to see when a module is loaded?
– Chris [import]uid: 33866 topic_id: 10848 reply_id: 310848[/import]