Last active
December 11, 2015 16:19
-
-
Save NexusGameStudio/4626988 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--/// OUYA - Corona SDK Sample Code - Nexus Game Studio, 2013 /// | |
--/// www.nexusgamestudio.com | www.twitter.com/NexusGameStudio /// | |
------------------------------------------------------------------------------------------------------------------------- | |
--/// Code samples are free to use and modify without permission. /// | |
--/// Sample code is provided "as is" and takes no responsibility over any software / hardware complications that may occur. /// | |
--/// Credit is appreciated but is not manditory. Go make awesome games! /// | |
------------------------------------------------------------------------------------------------------------------------- | |
--/// Config File Ver 1.0/// | |
application = | |
{ | |
content = | |
{ | |
fps = 60, --Framerate for your game [default = 30 fps]. | |
antialias = false, --Turns on / off anti-aliasing for vector based objects [false = off, true = on]. Note that turing it on will use more system resource. | |
width = 720, --Standard height for 720p TV. Do not change this. ***Remember, mobile displays are normally in portrait mode, so we have to reverse width and height.*** | |
height = 1280, --Standard width for 720p TV. Do not change this. | |
scale = "letterbox", --Scales all content evenly for 720p or 1080p. | |
xAlign = "center", --Sets the x axis in the center of the screen. | |
yAlign = "center", --Sets the y axis in the center of the screen. | |
}, | |
} | |
--/// Notes /// | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
--We use 1280x720 since it is the lowest base resolution for HD, because we use "letterbox" scaling, this will format all images evenly to higher resolutions such as 1366x768 | |
--and 1920x1080. Corona requires the config to use the lowest resolution as it's foundation and the engine will do the scaling, setting it too high will make everything small. | |
--Also note, when designing images, create them for a 1080p display, that way the engine will scale down your images and will remain sharp, instead of blurry / pixelated if you | |
--designed them at 720p from being upscaled. | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment