Hi,
I'm working on a game where I'd like to set the game window size to 640x480 (this is set in Project.xml), a game world size of 1920x480 (this is set in Main.hx as gameWidth = 1920, gameHeight = 480), and a camera size of 640x480 which can pan to the left and right across the 1920 width of the game world.
The problem is, whenever I set gameWidth to any value larger than 640, the game window is extended to the defined width and blank padding is added to the top and bottom of the screen.
I have been able to get the visuals working properly by setting the game size to 640x480, creating sprites and such beyond 640 pixels. This is fine, but then FlxG.overlap no longer works with any sprites beyond 640 pixels as they are outside of the game world.
Perhaps I'm missing something fundamental?
Thanks a bunch,
Jason
gameWidth x gameHeight = 640x480, zoom = 1 gameWidth x gameHeight = 1920x480, zoom = 1