带有 Neko 构建的 Haxeflixel,屏幕尺寸不适合

Haxeflixel with Neko build, Screen size does not fit

我使用 Haxeflixel,choose 构建目标 Neko 和 Neko 64。

我编码为 1280 x 720 分辨率,但执行的屏幕不适合。 也改变分辨率。

我刚刚重新安装了 os x yosemite 系统。是什么原因呢? 我无法理解这种情况

var gameWidth:Int = 1280; // 游戏的宽度(以像素为单位)(实际像素可能会更少/更多,具体取决于缩放比例)。

var gameHeight:Int = 720; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).
var initialState:Class<FlxState> = PlayState; // The FlxState the game starts with.
var zoom:Float = -1; // If -1, zoom is automatically calculated to fit the window dimensions.
var framerate:Int = 60; // How many frames per second the game should run at.
var skipSplash:Bool = false; // Whether to skip the flixel splash screen that appears in release mode.
var startFullscreen:Bool = false; // Whether to start the game in fullscreen on desktop targets

非常默认的设置...

如果我理解你的问题,问题是 gameWidthgameHeight 设置了游戏的逻辑屏幕尺寸,而不是游戏运行的 window 的像素尺寸.

尝试更改项目 Project.xml 文件中的 window 设置以设置 window 的物理大小以匹配游戏坐标,它可能会开始显示您期望的样子:

<!--These window settings apply to all targets-->
<window width="1280" height="720" fps="60" background="#000000" hardware="true" vsync="true" />

这是 lime 2.4.4 的问题。

下载http://www.openfl.org/builds/lime/lime-2.4.0-6-g837aa96.zip

haxelib local lime-2.4.0-6-g837aa96.zip 在终端上

见下文.. http://community.openfl.org/t/running-openfl-error-on-mac/1409/14