Does anyone know how to load a map inside a custom-sized space instead of full screen? I would like to have space at the top and bottom of the screen to put buttons and a banner ad.
Right now I am simply loading the map in like so:
mte.loadMap(“map1.tmx”)
mte.constrainCamera()
and my config file is simply:
application = {
content = {
width = 320,
height = 480,
scale = “letterbox”,
xAlign = “center”,
yAlign = “center”,
}
}
I also have mte.setCameraFocus(player) to follow the player around the map.
These configurations do exactly what I want, but I just can’t seem to get the map to load on the screen in a space with my own height set.
Changing the height, scale, xAlign, and yAlign in the config file doesn’t seem to work. Any solutions?
Thanks : )