示例#1
0
文件: Stage.cs 项目: Epicguru/Nez
        /// <summary>
        /// The Stages world width
        /// </summary>
        /// <returns>The width.</returns>
        public float GetWidth()
        {
            if (Entity != null && !IsFullScreen)
            {
                return(Entity.Scene.SceneRenderTargetSize.X);
            }

            return(Screen.Width / root.GetScaleX());
        }