2

Haxeflixel を使用し、ビルド ターゲットの 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

非常にデフォルト設定...

4

2 に答える 2

2

あなたの質問を理解した場合、問題は、ゲームが実行されるウィンドウのピクセル単位のサイズではなく、ゲームの論理画面サイズgameWidthを設定することです。gameHeight

プロジェクトのProject.xmlファイルのウィンドウ設定を変更して、ウィンドウの物理的なサイズをゲームの座標に合わせてみてください。

<!--These window settings apply to all targets-->
<window width="1280" height="720" fps="60" background="#000000" hardware="true" vsync="true" />
于 2015-06-09T10:18:01.183 に答える
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

于 2015-06-12T01:19:29.997 に答える