Resize the Game?

25 views
Skip to first unread message

Chosen Character

unread,
Aug 20, 2015, 5:36:41 PM8/20/15
to HaxeFlixel
Hey,

I've been having trouble with performance with this game, and it turns out that the main culprit is FlxCamera.zoom property. See, my game has 16x16 sprites on a 144x256 grid, so it's impossible to see without zoom, and currently I'm using 4x which is draining performance (I've switched it to other zooms and there weren't any problems.)

So I've started looking for alternate options. Currently Flash, Windows, and Neko have either regular or fullscreen, but is there a way to change the size of the game into other resolutions, like a lot of html pages do?

MegaLeon

unread,
Aug 20, 2015, 5:39:12 PM8/20/15
to HaxeFlixel
Do you mean that the size of your game in Main,hx is 144x256? If so you can set the resolution in Project.xml as multiple of those and the window will scale properly without having to resort to camera zoom. In my game, I have got a a 320x160 field outputted at 640x360 and it displays great.
Reply all
Reply to author
Forward
0 new messages