Hello guys!
I'm facing to a problem which actually stuck me to that point:
- For each levels I load a background image (a Surface object) which represent the GAME ZONE (meaning: where ONLY the player can move his character).
- I have trying to play with Virtual Width and Height for the character can be moved all on the Image surface, but, if the image surface is sized too small than the GAME FRAME APPLICATION, then black borders showed up in fullscreen (with the use of Ultimate FullScreen object and type).
- NOW I want do that:
In fullscreen only: be able to simulate Virtual Width/Virtual Height native-effect ONLY on Background image (loaded in a Surface extension). (As it then I'm be able to display an another Background image as Background application and have my Background level image aswell).
Quick-Schema:
----------------------
Actually I get that:
----------------------
Please login to see this picture.
1) This zone is the APPLICATION Zone, It is blackbordered in fullscreen.. And as you know no way for redraw in fullscreen that plain black which tend to make the game ugly... I know it is logic since it is the "GAME application blank window").
2) This zone is the GAME LEVEL Surface Zone, a PNG transparent image loaded in a Surface extension object. It is naturally Virtual Width and Virtual Height enabled since I set the Virtual Size in Width/Height same as the Frame size. So when the player reach the border of the "ORANGE" rectangle then the level extend naturally and the invisible part become visible. The player can only move on the BLUE surface, all GOLD surface is somekind of hole.
-------------------------
What I want achieve:
-------------------------
Please login to see this picture.
1) This zone is the APPLICATION Zone, It is now a new independent background image (in a Surface object or other object that can draw image) in fullscreen.. As it I can display a more cool image instead of the common BlackBorders!
2) This zone is the GAME LEVEL Surface Zone, a PNG transparent image loaded in a Surface extension object. It is now Virtual Width and Virtual Height enabled with events. So when the player reach the border of the "ORANGE" rectangle then the level extend naturally and the invisible part become visible. The player can only move on the BLUE surface, all GOLD surface is somekind of hole.
Do you have some ideas/tricks and tips to achieve that please ?