Haxeflixel与Neko构建,屏幕尺寸不适合

时间:2015-06-09 09:12:07

标签: haxe haxeflixel neko

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

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

enter image description here

我只是重新安装我的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

非常默认设置......

2 个答案:

答案 0 :(得分:1)

如果我理解你的问题,问题是gameWidthgameHeight设置游戏的逻辑屏幕大小,而不是游戏运行窗口的像素大小。

尝试更改项目的Project.xml文件中的窗口设置,以设置窗口的物理大小以匹配游戏坐标,并且可能会开始查看您的预期:

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

答案 1 :(得分:1)

这是石灰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